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

Kirill Bulatov created

That hopefully helps with call notifications sometimes not being closed

Release Notes:

- N/A

Change summary

crates/call/src/call.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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