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)