fix: Fix currentCID is null when handleNewCall is triggered, which will cause family-app.
This commit is contained in:
parent
50ef19b8a8
commit
e789ab904f
|
|
@ -197,18 +197,18 @@ class VoIP {
|
|||
content['offer']['sdp'],
|
||||
content['offer']['type'],
|
||||
);
|
||||
await newCall
|
||||
.initWithInvite(
|
||||
callType, offer, sdpStreamMetadata, lifetime, confId != null)
|
||||
.then((_) {
|
||||
// Popup CallingPage for incoming call.
|
||||
if (!delegate.isBackgroud && confId == null) {
|
||||
delegate.handleNewCall(newCall);
|
||||
}
|
||||
onIncomingCall.add(newCall);
|
||||
});
|
||||
await newCall.initWithInvite(
|
||||
callType, offer, sdpStreamMetadata, lifetime, confId != null);
|
||||
|
||||
currentCID = callId;
|
||||
|
||||
// Popup CallingPage for incoming call.
|
||||
if (!delegate.isBackgroud && confId == null) {
|
||||
delegate.handleNewCall(newCall);
|
||||
}
|
||||
|
||||
onIncomingCall.add(newCall);
|
||||
|
||||
if (delegate.isBackgroud) {
|
||||
/// Forced to enable signaling synchronization until the end of the call.
|
||||
client.backgroundSync = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue