mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +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
|
peerForBackground
|
||||||
) | rpl::map([=](PeerData *peer) -> rpl::producer<> {
|
) | rpl::map([=](PeerData *peer) -> rpl::producer<> {
|
||||||
if (!peer) {
|
if (!peer) {
|
||||||
return rpl::never<>();
|
return rpl::single(
|
||||||
|
rpl::empty_value()
|
||||||
|
) | rpl::then(
|
||||||
|
controller->defaultChatTheme()->repaintBackgroundRequests()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
return ChatThemeValueFromPeer(
|
return ChatThemeValueFromPeer(
|
||||||
controller,
|
controller,
|
||||||
|
|
Loading…
Add table
Reference in a new issue