mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix sudden theme switching in chat
This commit is contained in:
parent
16f3cd2a00
commit
cbac28797a
1 changed files with 4 additions and 1 deletions
|
|
@ -790,7 +790,10 @@ public final class ChatHistoryListNode: ListView, ChatHistoryNode {
|
|||
return view.values[PreferencesKeys.appConfiguration] as? AppConfiguration ?? .defaultValue
|
||||
}
|
||||
|
||||
self.presentationDataDisposable = (combineLatest(context.sharedContext.presentationData, appConfiguration)
|
||||
self.presentationDataDisposable = (
|
||||
combineLatest(queue: .mainQueue(),
|
||||
context.sharedContext.presentationData,
|
||||
appConfiguration)
|
||||
|> deliverOnMainQueue).start(next: { [weak self] presentationData, appConfiguration in
|
||||
if let strongSelf = self {
|
||||
let previousTheme = strongSelf.currentPresentationData.theme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue