From 9a6d15a72b64c7a93af73319b494833d92fc09c8 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 31 Jan 2023 16:49:58 +0530 Subject: [PATCH] Fix unwanted toast appearing when opening client --- src/matrix/calls/CallHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/matrix/calls/CallHandler.ts b/src/matrix/calls/CallHandler.ts index af01beef..b4a1c5cf 100644 --- a/src/matrix/calls/CallHandler.ts +++ b/src/matrix/calls/CallHandler.ts @@ -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