mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-06 14:25:04 +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)
|
let appliedLayout = controllerLayout.withUpdatedInputHeight(controller.hasActiveInput ? controllerLayout.inputHeight : nil)
|
||||||
controller.containerLayoutUpdated(appliedLayout, transition: .immediate)
|
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 {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -848,7 +850,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
|||||||
controllerLayout.inputHeight = nil
|
controllerLayout.inputHeight = nil
|
||||||
controller.containerLayoutUpdated(controllerLayout, transition: .immediate)
|
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 {
|
if let strongSelf = self {
|
||||||
ready?.set(true)
|
ready?.set(true)
|
||||||
var controllers = strongSelf.viewControllers
|
var controllers = strongSelf.viewControllers
|
||||||
@ -877,7 +881,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
|||||||
controllerLayout.inputHeight = nil
|
controllerLayout.inputHeight = nil
|
||||||
controller.containerLayoutUpdated(controllerLayout, transition: .immediate)
|
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 {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -901,7 +907,9 @@ open class NavigationController: UINavigationController, ContainableController,
|
|||||||
controllerLayout.inputHeight = nil
|
controllerLayout.inputHeight = nil
|
||||||
controller.containerLayoutUpdated(controllerLayout, transition: .immediate)
|
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 {
|
guard let strongSelf = self else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user