mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 21:41:45 +00:00
Expect ready on main queue
This commit is contained in:
parent
4fbcb7e535
commit
bc5c8f60d4
@ -803,7 +803,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
|
||||
let appliedLayout = controllerLayout.withUpdatedInputHeight(controller.hasActiveInput ? controllerLayout.inputHeight : nil)
|
||||
controller.containerLayoutUpdated(appliedLayout, transition: .immediate)
|
||||
strongSelf.currentPushDisposable.set((controller.ready.get() |> take(1)).start(next: { _ in
|
||||
strongSelf.currentPushDisposable.set((controller.ready.get()
|
||||
|> deliverOnMainQueue
|
||||
|> take(1)).start(next: { _ in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
@ -848,7 +850,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
controllerLayout.inputHeight = nil
|
||||
controller.containerLayoutUpdated(controllerLayout, transition: .immediate)
|
||||
}
|
||||
self.currentPushDisposable.set((controller.ready.get() |> take(1)).start(next: { [weak self] _ in
|
||||
self.currentPushDisposable.set((controller.ready.get()
|
||||
|> deliverOnMainQueue
|
||||
|> take(1)).start(next: { [weak self] _ in
|
||||
if let strongSelf = self {
|
||||
ready?.set(true)
|
||||
var controllers = strongSelf.viewControllers
|
||||
@ -877,7 +881,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
controllerLayout.inputHeight = nil
|
||||
controller.containerLayoutUpdated(controllerLayout, transition: .immediate)
|
||||
}
|
||||
strongSelf.currentPushDisposable.set((controller.ready.get() |> take(1)).start(next: { _ in
|
||||
strongSelf.currentPushDisposable.set((controller.ready.get()
|
||||
|> deliverOnMainQueue
|
||||
|> take(1)).start(next: { _ in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
@ -901,7 +907,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
||||
controllerLayout.inputHeight = nil
|
||||
controller.containerLayoutUpdated(controllerLayout, transition: .immediate)
|
||||
}
|
||||
strongSelf.currentPushDisposable.set((controller.ready.get() |> take(1)).start(next: { _ in
|
||||
strongSelf.currentPushDisposable.set((controller.ready.get()
|
||||
|> deliverOnMainQueue
|
||||
|> take(1)).start(next: { _ in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user