From 78f382a8f1d0fd4d8f2c071433e07435b4d370f6 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Mon, 12 May 2025 11:11:45 +0400 Subject: [PATCH 1/2] Don't show fake call UI on old iOS versions --- .../TelegramUI/Sources/AppDelegate.swift | 47 ++++++++++--------- 1 file changed, 25 insertions(+), 22 deletions(-) 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 { From c4b0444e538a9f0ec8130cc6c2f1165d25b7741b Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Mon, 12 May 2025 11:13:00 +0400 Subject: [PATCH 2/2] Attempt to fix gallery glitch --- 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 {