mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-26 13:38:52 +00:00
Fix bad check
This commit is contained in:
parent
93e5905095
commit
36859bbd6d
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user