Always include room id in protos
This is redundant, but it futures-proof the ability to talk about multiple rooms at any given time and feels safer in terms of race conditions.
This commit is contained in:
parent
baf6097b49
commit
95e08edbb8
4 changed files with 36 additions and 8 deletions
|
@ -723,6 +723,7 @@ impl Server {
|
|||
) -> Result<()> {
|
||||
let mut store = self.store().await;
|
||||
let (room, recipient_connection_ids) = store.cancel_call(
|
||||
request.payload.room_id,
|
||||
UserId::from_proto(request.payload.recipient_user_id),
|
||||
request.sender_id,
|
||||
)?;
|
||||
|
@ -741,7 +742,8 @@ impl Server {
|
|||
message: TypedEnvelope<proto::DeclineCall>,
|
||||
) -> Result<()> {
|
||||
let mut store = self.store().await;
|
||||
let (room, recipient_connection_ids) = store.call_declined(message.sender_id)?;
|
||||
let (room, recipient_connection_ids) =
|
||||
store.decline_call(message.payload.room_id, message.sender_id)?;
|
||||
for recipient_id in recipient_connection_ids {
|
||||
self.peer
|
||||
.send(recipient_id, proto::CallCanceled {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue