Merge branch 'fix/fix-incoming-call' into 'main'
fix: Fix currentCID is null when handleNewCall is triggered, which will cause family-app not to display incoming calls. See merge request famedly/company/frontend/famedlysdk!1080
This commit is contained in:
commit
e78bf3fc09
|
|
@ -199,18 +199,18 @@ class VoIP {
|
||||||
content['offer']['sdp'],
|
content['offer']['sdp'],
|
||||||
content['offer']['type'],
|
content['offer']['type'],
|
||||||
);
|
);
|
||||||
await newCall
|
await newCall.initWithInvite(
|
||||||
.initWithInvite(
|
callType, offer, sdpStreamMetadata, lifetime, confId != null);
|
||||||
callType, offer, sdpStreamMetadata, lifetime, confId != null)
|
|
||||||
.then((_) {
|
|
||||||
// Popup CallingPage for incoming call.
|
|
||||||
if (!delegate.isBackgroud && confId == null) {
|
|
||||||
delegate.handleNewCall(newCall);
|
|
||||||
}
|
|
||||||
onIncomingCall.add(newCall);
|
|
||||||
});
|
|
||||||
currentCID = callId;
|
currentCID = callId;
|
||||||
|
|
||||||
|
// Popup CallingPage for incoming call.
|
||||||
|
if (!delegate.isBackgroud && confId == null) {
|
||||||
|
delegate.handleNewCall(newCall);
|
||||||
|
}
|
||||||
|
|
||||||
|
onIncomingCall.add(newCall);
|
||||||
|
|
||||||
if (delegate.isBackgroud) {
|
if (delegate.isBackgroud) {
|
||||||
/// Forced to enable signaling synchronization until the end of the call.
|
/// Forced to enable signaling synchronization until the end of the call.
|
||||||
client.backgroundSync = true;
|
client.backgroundSync = true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue