Clear out incoming call when removing last connection for a user
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
0c0e8688ed
commit
6c322dc835
2 changed files with 6 additions and 2 deletions
|
@ -221,6 +221,9 @@ impl Store {
|
|||
result.guest_projects = left_room.left_projects;
|
||||
result.room_id = Some(room_id);
|
||||
result.canceled_call_connection_ids = left_room.canceled_call_connection_ids;
|
||||
} else if connected_user.connection_ids.len() == 1 {
|
||||
self.decline_call(room_id, connection_id)?;
|
||||
result.room_id = Some(room_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue