Fix unwanted toast appearing when opening client

This commit is contained in:
RMidhunSuresh 2023-01-31 16:49:58 +05:30
parent 903a157de2
commit 9a6d15a72b
No known key found for this signature in database

View File

@ -229,7 +229,8 @@ export class CallHandler implements RoomStateHandler {
this._calls.remove(call.id);
txn.calls.remove(call.intent, roomId, call.id);
}
} else {
} else if(!event.content["m.terminated"]) {
// We don't have this call already and it isn't terminated, so create the call:
call = new GroupCall(
event.state_key, // id
false, // isLoadedFromStorage