Merge pull request #5914 from matrix-org/jryans/forget-room-error
Check for null room in `VisibilityProvider`
This commit is contained in:
commit
dda18c9384
1 changed files with 5 additions and 1 deletions
|
@ -37,7 +37,11 @@ export class VisibilityProvider {
|
|||
await VoipUserMapper.sharedInstance().onNewInvitedRoom(room);
|
||||
}
|
||||
|
||||
public isRoomVisible(room: Room): boolean {
|
||||
public isRoomVisible(room?: Room): boolean {
|
||||
if (!room) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (
|
||||
CallHandler.sharedInstance().getSupportsVirtualRooms() &&
|
||||
VoipUserMapper.sharedInstance().isVirtualRoom(room)
|
||||
|
|
Loading…
Reference in a new issue