mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Fix inArray test for jQuery
Sorry i wrote it in the train :)
This commit is contained in:
+1
-1
@@ -157,7 +157,7 @@ function fetchInitialPeerList(jsondata) {
|
||||
fn = jsondata['contacts'][val];
|
||||
peerLabel = fn;
|
||||
}
|
||||
if (!$.inArray(peerLabel, bufferedContacts)) {
|
||||
if ($.inArray(peerLabel, bufferedContacts) !== true) {
|
||||
peerListBuf += '<li><a href="#" mailbox-navigation="' + val + '">' + peerLabel + '</a></li>';
|
||||
bufferedContacts.push(peerLabel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user