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:34:18 +02:00
parent 02ef6fc973
commit 2e9c9adfbe

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")));