Skip to content

Commit 25a3ae7

Browse files
author
Isaac
committed
Attempt to fix gallery glitch
(cherry picked from commit c4b0444)
1 parent 15b769a commit 25a3ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

submodules/GalleryUI/Sources/GalleryController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ public class GalleryController: ViewController, StandalonePresentableController,
792792
let syncResult = Atomic<(Bool, (() -> Void)?)>(value: (false, nil))
793793
self.disposable.set(combineLatest(
794794
messageView,
795-
self.context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration]),
796-
translateToLanguage
795+
self.context.account.postbox.preferencesView(keys: [PreferencesKeys.appConfiguration]) |> take(1),
796+
translateToLanguage |> take(1)
797797
).start(next: { [weak self] view, preferencesView, translateToLanguage in
798798
let f: () -> Void = {
799799
if let strongSelf = self {

0 commit comments

Comments
 (0)