mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 13:37:11 +00:00
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:
parent
171fc2cdc5
commit
4ac527a9dc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user