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:
+5
-5
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user