mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +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
|
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…
x
Reference in New Issue
Block a user