1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 07:56:23 +00:00

Fix the display of the SMS bubbles (#242)

Also add a fallback CSS class
This commit is contained in:
Idix 2018-06-23 09:19:18 +02:00 committed by Loïc Blot
parent 7103ce8b46
commit d29e2b1f7f

View File

@ -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