mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix possible crash with custom wallpapered peers.
This commit is contained in:
parent
a62d1dfa63
commit
7e071c770f
2 changed files with 5 additions and 3 deletions
|
@ -201,10 +201,12 @@ rpl::producer<const Data::WallPaper*> WallPaperResolved(
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
themes->refreshChatThemes();
|
themes->refreshChatThemes();
|
||||||
return themes->chatThemesUpdated(
|
return rpl::single<const Data::WallPaper*>(
|
||||||
|
nullptr
|
||||||
|
) | rpl::then(themes->chatThemesUpdated(
|
||||||
) | rpl::take(1) | rpl::map([=] {
|
) | rpl::take(1) | rpl::map([=] {
|
||||||
return fromThemes(true);
|
return fromThemes(true);
|
||||||
}) | rpl::flatten_latest();
|
}) | rpl::flatten_latest());
|
||||||
}
|
}
|
||||||
|
|
||||||
AbstractSectionWidget::AbstractSectionWidget(
|
AbstractSectionWidget::AbstractSectionWidget(
|
||||||
|
|
|
@ -700,7 +700,7 @@ private:
|
||||||
|
|
||||||
rpl::event_stream<> _filtersMenuChanged;
|
rpl::event_stream<> _filtersMenuChanged;
|
||||||
|
|
||||||
std::shared_ptr<Ui::ChatTheme> _defaultChatTheme;
|
const std::shared_ptr<Ui::ChatTheme> _defaultChatTheme;
|
||||||
base::flat_map<CachedThemeKey, CachedTheme> _customChatThemes;
|
base::flat_map<CachedThemeKey, CachedTheme> _customChatThemes;
|
||||||
rpl::event_stream<std::shared_ptr<Ui::ChatTheme>> _cachedThemesStream;
|
rpl::event_stream<std::shared_ptr<Ui::ChatTheme>> _cachedThemesStream;
|
||||||
const std::unique_ptr<Ui::ChatStyle> _chatStyle;
|
const std::unique_ptr<Ui::ChatStyle> _chatStyle;
|
||||||
|
|
Loading…
Add table
Reference in a new issue