1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-21 21:32:59 +00:00

Try to cleanup check_new_messages

This commit is contained in:
Loic Blot
2016-09-22 21:52:49 +02:00
parent 631640c5bb
commit b84ff1088f
2 changed files with 4 additions and 11 deletions
+3 -4
View File
@@ -204,9 +204,8 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
var bufferedContacts = [];
$.each(jsondata['phonelist'], function(id, val) {
var fn, peerLabel, idxVal, idxVal2;
idxVal = id.replace(/\//g,' ');
idxVal2 = idxVal.replace('/ /g','');
var fn, peerLabel, idxVal;
idxVal = id.replace(/\//g,'');
if (typeof jsondata['contacts'][id] == 'undefined') {
peerLabel = idxVal;
}
@@ -218,7 +217,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile'
if (!inArray(peerLabel, bufferedContacts)) {
var contactObj = {
'label': peerLabel,
'nav': idxVal2,
'nav': idxVal,
'unread': val
};