Skip to content

Commit fde974e

Browse files
committed
Merge commit '12d72565ae8eaaa63351737f65c7412e1ca89d95' into beta
2 parents 5fe77d8 + 12d7256 commit fde974e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

submodules/TelegramUI/Components/ChatThemeScreen/Sources/ChatThemeScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,6 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, ASScrollViewDelega
10331033
let initialThemeIndex = giftThemes.firstIndex(where: { $0.id == initiallySelectedTheme.id })
10341034
if initialThemeIndex == nil || initialThemeIndex! > 50 {
10351035
giftThemes.insert(initiallySelectedTheme, at: 0)
1036-
existingIds.insert(initiallySelectedTheme.id)
10371036
}
10381037
}
10391038

@@ -1074,6 +1073,7 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, ASScrollViewDelega
10741073
strings: presentationData.strings,
10751074
wallpaper: wallpaper
10761075
))
1076+
existingIds.insert(theme.id)
10771077
}
10781078

10791079
if uniqueGiftChatThemesState.themes.count == 0 || uniqueGiftChatThemesState.dataState == .ready(canLoadMore: false) {

0 commit comments

Comments
 (0)