Check for null room in VisibilityProvider

Hopefully fixes https://github.com/vector-im/element-web/issues/16898
This commit is contained in:
J. Ryan Stinnett 2021-04-23 17:24:13 +01:00
parent 65d55bd0d9
commit 3d41b48543

View file

@ -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)