mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Check for null room in VisibilityProvider
Hopefully fixes https://github.com/vector-im/element-web/issues/16898
This commit is contained in:
parent
65d55bd0d9
commit
3d41b48543
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