Fix build

This commit is contained in:
Isaac 2026-02-24 18:00:55 +01:00
parent 4f513faa82
commit 73dfa5f60d
3 changed files with 31 additions and 32 deletions

View file

@ -1171,6 +1171,8 @@ private func extractAccountManagerState(records: AccountRecordsView<TelegramAcco
return applicationBindings.pushIdleTimerExtension()
}, activeAccounts: sharedContext.activeAccountContexts |> map { ($0.0?.account, $0.1.map { ($0.0, $0.1.account) }) }, liveLocationPolling: liveLocationPolling, watchTasks: .single(nil), inForeground: applicationBindings.applicationInForeground, hasActiveAudioSession: self.hasActiveAudioSession.get(), notificationManager: notificationManager, mediaManager: sharedContext.mediaManager, callManager: sharedContext.callManager, accountUserInterfaceInUse: { id in
return sharedContext.accountUserInterfaceInUse(id)
}, presentationData: {
return sharedContext.currentPresentationData.with({ $0 })
})
let sharedApplicationContext = SharedApplicationContext(sharedContext: sharedContext, notificationManager: notificationManager, wakeupManager: wakeupManager)
sharedApplicationContext.sharedContext.mediaManager.overlayMediaManager.attachOverlayMediaController(sharedApplicationContext.overlayMediaController)