mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-29 03:21:29 +00:00
Fix chat theme preview
This commit is contained in:
parent
3038c9c3f1
commit
8141cc7672
@ -785,8 +785,8 @@ private class ChatThemeScreenNode: ViewControllerTracingNode, UIScrollViewDelega
|
|||||||
if let strongSelf = self, strongSelf.selectedEmoticon != emoticon {
|
if let strongSelf = self, strongSelf.selectedEmoticon != emoticon {
|
||||||
strongSelf.animateCrossfade(animateBackground: strongSelf.presentationData.theme.overallDarkAppearance, updateSunIcon: true)
|
strongSelf.animateCrossfade(animateBackground: strongSelf.presentationData.theme.overallDarkAppearance, updateSunIcon: true)
|
||||||
|
|
||||||
strongSelf.selectedEmoticon = emoticon
|
|
||||||
strongSelf.previewTheme?(emoticon, strongSelf.isDarkAppearance)
|
strongSelf.previewTheme?(emoticon, strongSelf.isDarkAppearance)
|
||||||
|
strongSelf.selectedEmoticon = emoticon
|
||||||
let _ = ensureThemeVisible(listNode: strongSelf.listNode, emoticon: emoticon, animated: true)
|
let _ = ensureThemeVisible(listNode: strongSelf.listNode, emoticon: emoticon, animated: true)
|
||||||
|
|
||||||
strongSelf.doneButton.title = emoticon == nil ? strongSelf.presentationData.strings.Conversation_Theme_Reset : strongSelf.presentationData.strings.Conversation_Theme_Apply
|
strongSelf.doneButton.title = emoticon == nil ? strongSelf.presentationData.strings.Conversation_Theme_Reset : strongSelf.presentationData.strings.Conversation_Theme_Apply
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user