diff --git a/src/controllers/CallsController.ts b/src/controllers/CallsController.ts index 3e4182f..a6728d4 100644 --- a/src/controllers/CallsController.ts +++ b/src/controllers/CallsController.ts @@ -40,7 +40,10 @@ export class CallsController { // Notify all other users await UserWebSocketController.SendToSpecifcClients( (c) => c.activeCalls.has(convID) && c.userID != h.getUserId(), - () => WsMessage.NoIDMessage("user_joined_call", h.getUserId()) + () => WsMessage.NoIDMessage("user_joined_call", { + callID: convID, + userID: h.getUserId() + }) ) h.success(); @@ -99,7 +102,10 @@ export class CallsController { // Notify all other users await UserWebSocketController.SendToSpecifcClients( (c) => c.activeCalls.has(convID), - () => WsMessage.NoIDMessage("user_left_call", c.userID) + () => WsMessage.NoIDMessage("user_left_call", { + callID: convID, + userID: c.userID + }) ) } }