mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-22 05:19:22 +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
|
// 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
|
||||||
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user