mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-12-26 13:38:52 +00:00
Send more information
This commit is contained in:
parent
b72dfa1646
commit
cb9bd06cdc
@ -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
|
||||
})
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user