mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 16:26:52 +00:00
Fix possible crash with custom wallpapered peers.
This commit is contained in:
parent
a62d1dfa63
commit
7e071c770f
@ -201,10 +201,12 @@ rpl::producer<const Data::WallPaper*> WallPaperResolved(
|
||||
return result;
|
||||
}
|
||||
themes->refreshChatThemes();
|
||||
return themes->chatThemesUpdated(
|
||||
return rpl::single<const Data::WallPaper*>(
|
||||
nullptr
|
||||
) | rpl::then(themes->chatThemesUpdated(
|
||||
) | rpl::take(1) | rpl::map([=] {
|
||||
return fromThemes(true);
|
||||
}) | rpl::flatten_latest();
|
||||
}) | rpl::flatten_latest());
|
||||
}
|
||||
|
||||
AbstractSectionWidget::AbstractSectionWidget(
|
||||
|
@ -700,7 +700,7 @@ private:
|
||||
|
||||
rpl::event_stream<> _filtersMenuChanged;
|
||||
|
||||
std::shared_ptr<Ui::ChatTheme> _defaultChatTheme;
|
||||
const std::shared_ptr<Ui::ChatTheme> _defaultChatTheme;
|
||||
base::flat_map<CachedThemeKey, CachedTheme> _customChatThemes;
|
||||
rpl::event_stream<std::shared_ptr<Ui::ChatTheme>> _cachedThemesStream;
|
||||
const std::unique_ptr<Ui::ChatStyle> _chatStyle;
|
||||
|
Loading…
Reference in New Issue
Block a user