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

Method apply

Telegram/SourceFiles/data/notify/data_notify_settings.cpp:106–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void NotifySettings::apply(
107 const MTPNotifyPeer &notifyPeer,
108 const MTPPeerNotifySettings &settings) {
109 notifyPeer.match([&](const MTPDnotifyUsers &) {
110 apply(DefaultNotify::User, settings);
111 }, [&](const MTPDnotifyChats &) {
112 apply(DefaultNotify::Group, settings);
113 }, [&](const MTPDnotifyBroadcasts &) {
114 apply(DefaultNotify::Broadcast, settings);
115 }, [&](const MTPDnotifyPeer &data) {
116 apply(peerFromMTP(data.vpeer()), settings);
117 }, [&](const MTPDnotifyForumTopic &data) {
118 apply(peerFromMTP(data.vpeer()), data.vtop_msg_id().v, settings);
119 });
120}
121
122void NotifySettings::apply(
123 const MTPInputNotifyPeer &notifyPeer,

Callers

nothing calls this directly

Calls 12

peerFromMTPFunction · 0.85
peerFromUserFunction · 0.85
peerFromChatFunction · 0.85
peerFromChannelFunction · 0.85
AppClass · 0.85
userPeerIdMethod · 0.80
forumTopicForMethod · 0.80
sessionMethod · 0.45
changeMethod · 0.45
checkDelayedMethod · 0.45
peerLoadedMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected