Fix background update with all chats closed.

This commit is contained in:
John Preston 2021-09-01 19:28:02 +03:00
parent 5aff4cca0e
commit 47e15d136d

View File

@ -73,7 +73,11 @@ AbstractSectionWidget::AbstractSectionWidget(
peerForBackground
) | rpl::map([=](PeerData *peer) -> rpl::producer<> {
if (!peer) {
return rpl::never<>();
return rpl::single(
rpl::empty_value()
) | rpl::then(
controller->defaultChatTheme()->repaintBackgroundRequests()
);
}
return ChatThemeValueFromPeer(
controller,