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 { diff --git a/submodules/TelegramUI/Sources/AppDelegate.swift b/submodules/TelegramUI/Sources/AppDelegate.swift index c22df4eb3e..76ffbe7991 100644 --- a/submodules/TelegramUI/Sources/AppDelegate.swift +++ b/submodules/TelegramUI/Sources/AppDelegate.swift @@ -2400,30 +2400,33 @@ private func extractAccountManagerState(records: AccountRecordsView Signal {