1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 13:29:22 +00:00

Send more information

This commit is contained in:
Pierre HUBERT 2020-04-10 16:58:15 +02:00
parent b72dfa1646
commit cb9bd06cdc

View File

@ -40,7 +40,10 @@ export class CallsController {
// Notify all other users // Notify all other users
await UserWebSocketController.SendToSpecifcClients( await UserWebSocketController.SendToSpecifcClients(
(c) => c.activeCalls.has(convID) && c.userID != h.getUserId(), (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(); h.success();
@ -99,7 +102,10 @@ export class CallsController {
// Notify all other users // Notify all other users
await UserWebSocketController.SendToSpecifcClients( await UserWebSocketController.SendToSpecifcClients(
(c) => c.activeCalls.has(convID), (c) => c.activeCalls.has(convID),
() => WsMessage.NoIDMessage("user_left_call", c.userID) () => WsMessage.NoIDMessage("user_left_call", {
callID: convID,
userID: c.userID
})
) )
} }
} }