mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Replaced mapping to rpl::empty_value with rpl::to_empty.
This commit is contained in:
@@ -155,7 +155,7 @@ rpl::producer<bool> NotificationsEnabledValue(not_null<PeerData*> peer) {
|
||||
peer->session().changes().peerFlagsValue(
|
||||
peer,
|
||||
UpdateFlag::Notifications
|
||||
) | rpl::map([] { return rpl::empty_value(); }),
|
||||
) | rpl::to_empty,
|
||||
peer->owner().defaultNotifyUpdates(peer)
|
||||
) | rpl::map([=] {
|
||||
return !peer->owner().notifyIsMuted(peer);
|
||||
|
Reference in New Issue
Block a user