MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / enabled

Method enabled

Telegram/SourceFiles/api/api_reactions_notify_settings.cpp:116–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116rpl::producer<bool> ReactionsNotifySettings::enabled() const {
117 return rpl::combine(
118 _messagesFrom.value(),
119 _pollVotesFrom.value()
120 ) | rpl::map([](
121 ReactionsNotifyFrom messages,
122 ReactionsNotifyFrom pollVotes) {
123 return (messages != ReactionsNotifyFrom::None)
124 || (pollVotes != ReactionsNotifyFrom::None);
125 }) | rpl::distinct_until_changed();
126}
127
128void ReactionsNotifySettings::apply(
129 const MTPReactionsNotifySettings &settings) {

Callers

nothing calls this directly

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected