forked from ppfun/pixelplanet
skip DM channels of deleted users (workaround till we got user deletion stable)
This commit is contained in:
parent
f852cdd166
commit
04f5a2df5e
|
@ -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, [
|
||||
|
|
Loading…
Reference in New Issue
Block a user