Don't show toast if room is not available

This commit is contained in:
RMidhunSuresh 2023-01-31 16:48:48 +05:30
parent 072004a9c2
commit 903a157de2
No known key found for this signature in database

View File

@ -39,6 +39,9 @@ export class ToastCollectionViewModel extends ViewModel<SegmentType, Options> {
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) {