fix an issue when app is in background state, call messages are not handled properly

pull/1053/head
Ryan ZHAO 4 months ago
parent f153fb6cf5
commit 25ffe98912

@ -7778,7 +7778,7 @@
CODE_SIGN_ENTITLEMENTS = Session/Meta/Signal.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 504;
CURRENT_PROJECT_VERSION = 505;
DEVELOPMENT_TEAM = SUQ8J2PCT7;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
@ -7849,7 +7849,7 @@
CODE_SIGN_ENTITLEMENTS = Session/Meta/Signal.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CURRENT_PROJECT_VERSION = 504;
CURRENT_PROJECT_VERSION = 505;
DEVELOPMENT_TEAM = SUQ8J2PCT7;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",

@ -413,7 +413,9 @@ public class Poller {
job: job,
canStartJob: (
!forceSynchronousProcessing &&
(Singleton.hasAppContext && !Singleton.appContext.isInBackground)
(Singleton.hasAppContext && !Singleton.appContext.isInBackground) ||
// FIXME: Better seperate the call messages handling, since we need to handle them all the time
SessionEnvironment.shared?.callManager.wrappedValue?.currentCall != nil
),
using: dependencies
)

Loading…
Cancel
Save