Video call screen improvements

This commit is contained in:
Ali
2020-07-07 20:14:02 +04:00
parent 781355b477
commit b311b5cf74
18 changed files with 4882 additions and 4392 deletions

View File

@@ -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()
}
}
}
}