From 25a3ae793be39af8e140723f84ba16f1d99620e9 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Mon, 12 May 2025 11:13:00 +0400 Subject: [PATCH] Attempt to fix gallery glitch (cherry picked from commit c4b0444e538a9f0ec8130cc6c2f1165d25b7741b) --- submodules/GalleryUI/Sources/GalleryController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/GalleryUI/Sources/GalleryController.swift b/submodules/GalleryUI/Sources/GalleryController.swift index aec776a3b8..e161b6d5b5 100644 --- a/submodules/GalleryUI/Sources/GalleryController.swift +++ b/submodules/GalleryUI/Sources/GalleryController.swift @@ -792,8 +792,8 @@ public class GalleryController: ViewController, StandalonePresentableController, let syncResult = Atomic<(Bool, (() -> Void)?)>(value: (false, nil)) self.disposable.set(combineLatest( messageView, - self.context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration]), - translateToLanguage + self.context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration]) |> take(1), + translateToLanguage |> take(1) ).start(next: { [weak self] view, preferencesView, translateToLanguage in let f: () -> Void = { if let strongSelf = self {