mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Video call screen improvements
This commit is contained in:
@@ -676,9 +676,13 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
|
||||
mainWindow.inCallNavigate = { [weak self] in
|
||||
if let strongSelf = self, let callController = strongSelf.callController {
|
||||
if callController.isNodeLoaded && callController.view.superview == nil {
|
||||
if callController.isNodeLoaded {
|
||||
mainWindow.hostView.containerView.endEditing(true)
|
||||
mainWindow.present(callController, on: .calls)
|
||||
if callController.view.superview == nil {
|
||||
mainWindow.present(callController, on: .calls)
|
||||
} else {
|
||||
callController.expandFromPipIfPossible()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user