Start syncing when receiving a background VoIP call for the cases in which the app was suspended but not terminated.

This commit is contained in:
Stefan Ceriu
2024-11-06 20:08:59 +02:00
parent 46a7dbf41e
commit 020f40b48b

View File

@@ -149,6 +149,10 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
case .startCall(let roomID):
self?.handleAppRoute(.call(roomID: roomID))
case .receivedIncomingCallRequest:
// When reporting a VoIP call through the CXProvider's `reportNewIncomingVoIPPushPayload`
// the UIApplication states don't change and syncing is neither started nor ran on
// a background task. Handle both manually here.
self?.startSync()
self?.scheduleDelayedSyncStop()
default:
break