1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-12-26 13:38:52 +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
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
})
)
}
}