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) {
|
if (shouldEmit) {
|
||||||
setCallState(CallState.kEnded);
|
setCallState(CallState.kEnded);
|
||||||
}
|
}
|
||||||
if (callId != voip.currentCID) return;
|
|
||||||
voip.currentCID = null;
|
if (!isGroupCall) {
|
||||||
|
if (callId != voip.currentCID) return;
|
||||||
|
voip.currentCID = null;
|
||||||
|
}
|
||||||
|
|
||||||
voip.calls.remove(callId);
|
voip.calls.remove(callId);
|
||||||
voip.incomingCallRoomId.removeWhere((key, value) => value == callId);
|
voip.incomingCallRoomId.removeWhere((key, value) => value == callId);
|
||||||
await cleanUp();
|
await cleanUp();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue