mirror of
https://github.com/nerzhul/ocsms.git
synced 2025-06-07 16:06:15 +00:00
Fix the display of the SMS bubbles (#242)
Also add a fallback CSS class
This commit is contained in:
parent
7103ce8b46
commit
d29e2b1f7f
@ -334,14 +334,14 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
|
|||||||
var msgCount = 0;
|
var msgCount = 0;
|
||||||
|
|
||||||
$.each(jsondata["conversation"], function (id, vals) {
|
$.each(jsondata["conversation"], function (id, vals) {
|
||||||
if (vals["type"] === 1) {
|
if (vals["type"] == 1) {
|
||||||
msgClass = "recv";
|
msgClass = "recv";
|
||||||
}
|
}
|
||||||
else if (vals["type"] === 2) {
|
else if (vals["type"] == 2) {
|
||||||
msgClass = "sent";
|
msgClass = "sent";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msgClass = '';
|
msgClass = 'unknown';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store the greater msg date for refresher
|
// Store the greater msg date for refresher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user