skip DM channels of deleted users (workaround till we got user deletion stable)

This commit is contained in:
HF 2020-12-02 17:54:27 +01:00
parent f852cdd166
commit 04f5a2df5e

View File

@ -83,7 +83,12 @@ class User {
/* in DMs:
* the name is the name of the other user
* id also gets grabbed
*
* TODO clean DMs of deleted users
*/
if (!dmu1 || !dmu2) {
continue;
}
const name = (dmu1.id === this.id) ? dmu2.name : dmu1.name;
const dmu = (dmu1.id === this.id) ? dmu2.id : dmu1.id;
this.addChannel(id, [