Remove active call data when it was accepted (#4007)

That hopefully helps with call notifications sometimes not being closed

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-01-11 00:40:32 +02:00 committed by GitHub
commit 3c1ed152ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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