diff --git a/src/domain/session/toast/ToastCollectionViewModel.ts b/src/domain/session/toast/ToastCollectionViewModel.ts index 709f5b81..78961029 100644 --- a/src/domain/session/toast/ToastCollectionViewModel.ts +++ b/src/domain/session/toast/ToastCollectionViewModel.ts @@ -39,6 +39,9 @@ export class ToastCollectionViewModel extends ViewModel { onAdd(_, call: GroupCall) { if (this._shouldShowNotification(call)) { const room = this._findRoomForCall(call); + if (!room) { + return; + } const dismiss = () => { const idx = this.toastViewModels.array.findIndex(vm => vm.call === call); if (idx !== -1) {