mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Attempt to fix gallery glitch
(cherry picked from commit c4b0444e538a9f0ec8130cc6c2f1165d25b7741b)
This commit is contained in:
parent
15b769a274
commit
25a3ae793b
@ -792,8 +792,8 @@ public class GalleryController: ViewController, StandalonePresentableController,
|
|||||||
let syncResult = Atomic<(Bool, (() -> Void)?)>(value: (false, nil))
|
let syncResult = Atomic<(Bool, (() -> Void)?)>(value: (false, nil))
|
||||||
self.disposable.set(combineLatest(
|
self.disposable.set(combineLatest(
|
||||||
messageView,
|
messageView,
|
||||||
self.context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration]),
|
self.context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration]) |> take(1),
|
||||||
translateToLanguage
|
translateToLanguage |> take(1)
|
||||||
).start(next: { [weak self] view, preferencesView, translateToLanguage in
|
).start(next: { [weak self] view, preferencesView, translateToLanguage in
|
||||||
let f: () -> Void = {
|
let f: () -> Void = {
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user