From 36859bbd6d4d2479e2db15c258345517f6e9ab93 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 10 Apr 2020 16:06:45 +0200 Subject: [PATCH] Fix bad check --- src/controllers/CallsController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/CallsController.ts b/src/controllers/CallsController.ts index fc03de9..91e7d99 100644 --- a/src/controllers/CallsController.ts +++ b/src/controllers/CallsController.ts @@ -31,7 +31,7 @@ export class CallsController { const convID = await h.postConversationId("convID"); // If the user was active in any other calls, remove him - for(const c of UserWebSocketController.active_clients.filter((f) => f.userID == convID && f.activeCalls.has(convID))) + for(const c of UserWebSocketController.active_clients.filter((f) => f.userID == h.getUserId() && f.activeCalls.has(convID))) await this.MakeUserLeaveCall(convID, c)