From f2758f9ce53ef7331e3f88863b32222f02a941d1 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Sep 2021 18:41:26 +0100 Subject: [PATCH] Fix glare --- src/CallHandler.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index adcc9024e5..002a4f821d 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -485,8 +485,9 @@ export default class CallHandler extends EventEmitter { this.pause(AudioID.Ringback); } + this.removeCallForRoom(mappedRoomId); this.addCallForRoom(mappedRoomId, newCall); - this.setCallListeners(call); + this.setCallListeners(newCall); this.setCallState(newCall, newCall.state); }); call.on(CallEvent.AssertedIdentityChanged, async () => {