From 12d72565ae8eaaa63351737f65c7412e1ca89d95 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 1 Sep 2025 19:06:11 +0400 Subject: [PATCH] Various fixes --- .../Components/ChatThemeScreen/Sources/ChatThemeScreen.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Components/ChatThemeScreen/Sources/ChatThemeScreen.swift b/submodules/TelegramUI/Components/ChatThemeScreen/Sources/ChatThemeScreen.swift index 23fe009606..6ab4a46adc 100644 --- a/submodules/TelegramUI/Components/ChatThemeScreen/Sources/ChatThemeScreen.swift +++ b/submodules/TelegramUI/Components/ChatThemeScreen/Sources/ChatThemeScreen.swift @@ -1033,7 +1033,6 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, ASScrollViewDelega let initialThemeIndex = giftThemes.firstIndex(where: { $0.id == initiallySelectedTheme.id }) if initialThemeIndex == nil || initialThemeIndex! > 50 { giftThemes.insert(initiallySelectedTheme, at: 0) - existingIds.insert(initiallySelectedTheme.id) } } @@ -1074,6 +1073,7 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, ASScrollViewDelega strings: presentationData.strings, wallpaper: wallpaper )) + existingIds.insert(theme.id) } if uniqueGiftChatThemesState.themes.count == 0 || uniqueGiftChatThemesState.dataState == .ready(canLoadMore: false) {