mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
[WIP] Call UI
This commit is contained in:
@@ -1054,6 +1054,16 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
self.mainWindow?.hostView.containerView.endEditing(true)
|
||||
let callController = CallController(sharedContext: self, account: call.context.account, call: call, easyDebugAccess: !GlobalExperimentalSettings.isAppStoreBuild)
|
||||
self.callController = callController
|
||||
callController.restoreUIForPictureInPicture = { [weak self, weak callController] completion in
|
||||
guard let self, let callController else {
|
||||
completion(false)
|
||||
return
|
||||
}
|
||||
if callController.window == nil {
|
||||
self.mainWindow?.present(callController, on: .calls)
|
||||
}
|
||||
completion(true)
|
||||
}
|
||||
self.mainWindow?.present(callController, on: .calls)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user