Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit dda18c9

Browse files
authored
Merge pull request #5914 from matrix-org/jryans/forget-room-error
Check for null room in `VisibilityProvider`
2 parents 09af2a8 + 3d41b48 commit dda18c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/stores/room-list/filters/VisibilityProvider.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ export class VisibilityProvider {
3737
await VoipUserMapper.sharedInstance().onNewInvitedRoom(room);
3838
}
3939

40-
public isRoomVisible(room: Room): boolean {
40+
public isRoomVisible(room?: Room): boolean {
41+
if (!room) {
42+
return false;
43+
}
44+
4145
if (
4246
CallHandler.sharedInstance().getSupportsVirtualRooms() &&
4347
VoipUserMapper.sharedInstance().isVirtualRoom(room)

0 commit comments

Comments
 (0)