mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Fix possible crash with custom wallpapered peers.
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user