1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-26 13:38:52 +00:00

Fix bad check

This commit is contained in:
Pierre HUBERT 2020-04-10 16:06:45 +02:00
parent 93e5905095
commit 36859bbd6d

View File

@ -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)