From f0f82107909a120c6d31b3a6f0bdef46a2b04ea2 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 1 Jun 2021 19:04:52 +0100 Subject: [PATCH] Log when we ignore a second call in a room What's more useful than a comment? A log line. --- src/CallHandler.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index 90a631ab7f..a05d3a25c8 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -802,7 +802,10 @@ export default class CallHandler extends EventEmitter { const mappedRoomId = CallHandler.sharedInstance().roomIdForCall(call); if (this.getCallForRoom(mappedRoomId)) { - // ignore multiple incoming calls to the same room + console.log( + "Got incoming call for room " + mappedRoomId + + " but there's already a call for this room: ignoring", + ); return; }