mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fix background update with all chats closed.
This commit is contained in:
parent
5aff4cca0e
commit
47e15d136d
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue