Leave room when Room entity is dropped

This commit is contained in:
Antonio Scandurra
2022-09-28 11:33:38 +02:00
parent 573086eed2
commit e55e7e4844
6 changed files with 89 additions and 20 deletions
+5
View File
@@ -15,6 +15,7 @@ message Envelope {
CreateRoomResponse create_room_response = 9;
JoinRoom join_room = 10;
JoinRoomResponse join_room_response = 11;
LeaveRoom leave_room = 1002;
Call call = 12;
IncomingCall incoming_call = 1000;
CancelCall cancel_call = 1001;
@@ -149,6 +150,10 @@ message JoinRoomResponse {
Room room = 1;
}
message LeaveRoom {
uint64 id = 1;
}
message Room {
repeated Participant participants = 1;
repeated uint64 pending_user_ids = 2;
+1
View File
@@ -131,6 +131,7 @@ messages!(
(JoinRoomResponse, Foreground),
(LeaveChannel, Foreground),
(LeaveProject, Foreground),
(LeaveRoom, Foreground),
(OpenBufferById, Background),
(OpenBufferByPath, Background),
(OpenBufferForSymbol, Background),