mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Attempt to fix gallery glitch
This commit is contained in:
parent
78f382a8f1
commit
c4b0444e53
@ -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