This commit is contained in:
Michael Telatynski 2021-03-25 17:41:26 +00:00
parent a2fe964a31
commit 1b22cc8f6d

View file

@ -294,7 +294,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
} }
}; };
private onSpaceMembersChange = (space: Room, ev: MatrixEvent) => { private onSpaceMembersChange = (ev: MatrixEvent) => {
// skip this update if we do not have a DM with this user // skip this update if we do not have a DM with this user
if (DMRoomMap.shared().getDMRoomsForUserId(ev.getStateKey()).length < 1) return; if (DMRoomMap.shared().getDMRoomsForUserId(ev.getStateKey()).length < 1) return;
this.onRoomsUpdate(); this.onRoomsUpdate();
@ -412,7 +412,7 @@ export class SpaceStoreClass extends AsyncStoreWithClient<IState> {
case EventType.RoomMember: case EventType.RoomMember:
if (room.isSpaceRoom()) { if (room.isSpaceRoom()) {
this.onSpaceMembersChange(room, ev); this.onSpaceMembersChange(ev);
} }
break; break;
} }