mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 01:50:36 +00:00
Fix background update with all chats closed.
This commit is contained in:
parent
5aff4cca0e
commit
47e15d136d
@ -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…
Reference in New Issue
Block a user