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

Really fix the thing into conversations

This commit is contained in:
Loic Blot
2014-10-22 16:02:13 +00:00
parent 74511c4c60
commit 20db5d6a7f
3 changed files with 34 additions and 16 deletions
+5 -5
View File
@@ -198,17 +198,17 @@ function fetchInitialPeerList(jsondata) {
$.each(jsondata['phonelist'], function(id, val) {
var fn, peerLabel, idxVal;
idxVal = val.replace(/ /g,'/');
if (typeof jsondata['contacts'][idxVal] == 'undefined') {
idxVal = id.replace(/\//g,' ');
if (typeof jsondata['contacts'][id] == 'undefined') {
fn = '';
peerLabel = val;
peerLabel = id;
}
else {
fn = jsondata['contacts'][idxVal];
fn = jsondata['contacts'][id];
peerLabel = fn;
}
if ($.inArray(peerLabel, bufferedContacts) == -1) {
peerListBuf += '<li><a href="#" mailbox-navigation="' + val + '">' + peerLabel + '</a></li>';
peerListBuf += '<li><a href="#" mailbox-navigation="' + idxVal + '">' + peerLabel + '</a></li>';
bufferedContacts.push(peerLabel);
}
});