| 104 | } |
| 105 | |
| 106 | void NotifySettings::apply( |
| 107 | const MTPNotifyPeer ¬ifyPeer, |
| 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 | |
| 122 | void NotifySettings::apply( |
| 123 | const MTPInputNotifyPeer ¬ifyPeer, |
nothing calls this directly
no test coverage detected