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:
parent
7103ce8b46
commit
d29e2b1f7f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user