mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
no message
This commit is contained in:
@@ -52,11 +52,12 @@ final class PresentationContext {
|
||||
|
||||
strongSelf.controllers.append(controller)
|
||||
if let view = strongSelf.view, let layout = strongSelf.layout {
|
||||
controller.navigation_setDismiss { [weak strongSelf, weak controller] in
|
||||
controller.navigation_setDismiss({ [weak strongSelf, weak controller] in
|
||||
if let strongSelf = strongSelf, let controller = controller {
|
||||
strongSelf.dismiss(controller)
|
||||
}
|
||||
}
|
||||
}, rootController: nil)
|
||||
controller.setIgnoreAppearanceMethodInvocations(true)
|
||||
if layout != initialLayout {
|
||||
controller.view.frame = CGRect(origin: CGPoint(), size: layout.size)
|
||||
view.addSubview(controller.view)
|
||||
@@ -64,6 +65,7 @@ final class PresentationContext {
|
||||
} else {
|
||||
view.addSubview(controller.view)
|
||||
}
|
||||
controller.setIgnoreAppearanceMethodInvocations(false)
|
||||
view.layer.invalidateUpTheTree()
|
||||
controller.viewWillAppear(false)
|
||||
controller.viewDidAppear(false)
|
||||
|
||||
Reference in New Issue
Block a user