Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove active call data when it was accepted
Kirill Bulatov2e9c9adfbe35
diff --git a/crates/call/src/call.rs b/crates/call/src/call.rsindex 3561cc33852..3257906386e 100644--- a/crates/call/src/call.rs+++ b/crates/call/src/call.rs@@ -282,7 +282,7 @@ impl ActiveCall {return Task::ready(Err(anyhow!("cannot join while on another call")));}- let call = if let Some(call) = self.incoming_call.1.borrow().clone() {+ let call = if let Some(call) = self.incoming_call.0.borrow_mut().take() {call} else {return Task::ready(Err(anyhow!("no incoming call")));