Fix race condition when UpdateChannel message is received while fetching participants for previous update

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-08-14 17:36:35 -07:00
parent 71454ba27c
commit cbf497bc12
5 changed files with 38 additions and 19 deletions

View file

@ -2037,8 +2037,6 @@ impl CollabPanel {
self.show_channel_modal(action.channel_id, channel_modal::Mode::ManageMembers, cx);
}
// TODO: Make join into a toggle
// TODO: Make enter work on channel editor
fn remove(&mut self, _: &Remove, cx: &mut ViewContext<Self>) {
if let Some(channel) = self.selected_channel() {
self.remove_channel(channel.id, cx)