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:
parent
02ef6fc973
commit
2e9c9adfbe
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ impl ActiveCall {
|
||||||
return Task::ready(Err(anyhow!("cannot join while on another call")));
|
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
|
call
|
||||||
} else {
|
} else {
|
||||||
return Task::ready(Err(anyhow!("no incoming call")));
|
return Task::ready(Err(anyhow!("no incoming call")));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue