fix: Fix can't correctly remove/cleanup call in group call.
This commit is contained in:
parent
da0b3c4c46
commit
8ed9913eb6
|
|
@ -1071,8 +1071,12 @@ class CallSession {
|
|||
if (shouldEmit) {
|
||||
setCallState(CallState.kEnded);
|
||||
}
|
||||
|
||||
if (!isGroupCall) {
|
||||
if (callId != voip.currentCID) return;
|
||||
voip.currentCID = null;
|
||||
}
|
||||
|
||||
voip.calls.remove(callId);
|
||||
voip.incomingCallRoomId.removeWhere((key, value) => value == callId);
|
||||
await cleanUp();
|
||||
|
|
|
|||
Loading…
Reference in New Issue