From 47e15d136d2a2ffc32890a6762be7b64a892b65e Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 1 Sep 2021 19:28:02 +0300 Subject: [PATCH] Fix background update with all chats closed. --- Telegram/SourceFiles/window/section_widget.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/section_widget.cpp b/Telegram/SourceFiles/window/section_widget.cpp index 885481ac7f..862adb7629 100644 --- a/Telegram/SourceFiles/window/section_widget.cpp +++ b/Telegram/SourceFiles/window/section_widget.cpp @@ -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,