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