mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
Various fixes
This commit is contained in:
parent
b1bcf52a09
commit
12d72565ae
@ -1033,7 +1033,6 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, ASScrollViewDelega
|
|||||||
let initialThemeIndex = giftThemes.firstIndex(where: { $0.id == initiallySelectedTheme.id })
|
let initialThemeIndex = giftThemes.firstIndex(where: { $0.id == initiallySelectedTheme.id })
|
||||||
if initialThemeIndex == nil || initialThemeIndex! > 50 {
|
if initialThemeIndex == nil || initialThemeIndex! > 50 {
|
||||||
giftThemes.insert(initiallySelectedTheme, at: 0)
|
giftThemes.insert(initiallySelectedTheme, at: 0)
|
||||||
existingIds.insert(initiallySelectedTheme.id)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1074,6 +1073,7 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, ASScrollViewDelega
|
|||||||
strings: presentationData.strings,
|
strings: presentationData.strings,
|
||||||
wallpaper: wallpaper
|
wallpaper: wallpaper
|
||||||
))
|
))
|
||||||
|
existingIds.insert(theme.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
if uniqueGiftChatThemesState.themes.count == 0 || uniqueGiftChatThemesState.dataState == .ready(canLoadMore: false) {
|
if uniqueGiftChatThemesState.themes.count == 0 || uniqueGiftChatThemesState.dataState == .ready(canLoadMore: false) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user