followed contacts fix

This commit is contained in:
Martti Malmi 2022-09-19 16:15:38 +03:00
parent 300f3b7939
commit 900a8b11a5

View File

@ -59,6 +59,11 @@ class Contacts extends View {
this.contactsSub && this.contactsSub.off();
this.contactsSub = e;
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();
}));
}));