mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 22:23:23 +00:00
followed contacts fix
This commit is contained in:
parent
300f3b7939
commit
900a8b11a5
@ -59,6 +59,11 @@ class Contacts extends View {
|
|||||||
this.contactsSub && this.contactsSub.off();
|
this.contactsSub && this.contactsSub.off();
|
||||||
this.contactsSub = e;
|
this.contactsSub = e;
|
||||||
this.shownContacts = contacts;
|
this.shownContacts = contacts;
|
||||||
|
for (let k in this.shownContacts) { // remove some invalid keys. TODO: why are they there?
|
||||||
|
if ((k.indexOf('~') === 0) || (k.length < 40)) {
|
||||||
|
delete this.shownContacts[k];
|
||||||
|
}
|
||||||
|
}
|
||||||
this.updateSortedKeys();
|
this.updateSortedKeys();
|
||||||
}));
|
}));
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user