From d29e2b1f7f470436a4a945cc6ce55d528c2f10e5 Mon Sep 17 00:00:00 2001 From: Idix <784658+Idix@users.noreply.github.com> Date: Sat, 23 Jun 2018 09:19:18 +0200 Subject: [PATCH] Fix the display of the SMS bubbles (#242) Also add a fallback CSS class --- js/devel/legacy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/devel/legacy.js b/js/devel/legacy.js index 7f0f217..af1ddd5 100644 --- a/js/devel/legacy.js +++ b/js/devel/legacy.js @@ -334,14 +334,14 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' var msgCount = 0; $.each(jsondata["conversation"], function (id, vals) { - if (vals["type"] === 1) { + if (vals["type"] == 1) { msgClass = "recv"; } - else if (vals["type"] === 2) { + else if (vals["type"] == 2) { msgClass = "sent"; } else { - msgClass = ''; + msgClass = 'unknown'; } // Store the greater msg date for refresher