Remove active call data when it was accepted

That hopefully helps with call notifications sometimes not being closed

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Kirill Bulatov
2024-01-11 00:35:00 +02:00
co-authored by Max
parent 02ef6fc973
commit 2e9c9adfbe
+1 -1
View File
@@ -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")));