Implement call cancellation

This commit is contained in:
Antonio Scandurra 2022-10-06 15:12:27 +02:00
parent 2e84fc6737
commit 4cb306fbf3
6 changed files with 176 additions and 7 deletions

View file

@ -18,7 +18,8 @@ message Envelope {
LeaveRoom leave_room = 1002;
Call call = 12;
IncomingCall incoming_call = 1000;
CancelCall cancel_call = 1001;
CallCanceled call_canceled = 1001;
CancelCall cancel_call = 1004;
DeclineCall decline_call = 13;
UpdateParticipantLocation update_participant_location = 1003;
RoomUpdated room_updated = 14;
@ -189,7 +190,11 @@ message IncomingCall {
optional uint64 initial_project_id = 4;
}
message CancelCall {}
message CallCanceled {}
message CancelCall {
uint64 recipient_user_id = 1;
}
message DeclineCall {}

View file

@ -84,6 +84,7 @@ messages!(
(BufferReloaded, Foreground),
(BufferSaved, Foreground),
(Call, Foreground),
(CallCanceled, Foreground),
(CancelCall, Foreground),
(ChannelMessageSent, Foreground),
(CopyProjectEntry, Foreground),
@ -183,6 +184,7 @@ request_messages!(
ApplyCompletionAdditionalEditsResponse
),
(Call, Ack),
(CancelCall, Ack),
(CopyProjectEntry, ProjectEntryResponse),
(CreateProjectEntry, ProjectEntryResponse),
(CreateRoom, CreateRoomResponse),