2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Slightly optimized name of methods in data notify settings.

This commit is contained in:
23rd
2022-04-05 09:16:16 +03:00
parent c04a0e42a7
commit 9950452e57
13 changed files with 60 additions and 75 deletions

View File

@@ -2095,20 +2095,20 @@ void ApiWrap::applyNotifySettings(
auto &notifySettings = _session->data().notifySettings();
switch (notifyPeer.type()) {
case mtpc_inputNotifyUsers:
notifySettings.applyNotifySetting(MTP_notifyUsers(), settings);
notifySettings.apply(MTP_notifyUsers(), settings);
break;
case mtpc_inputNotifyChats:
notifySettings.applyNotifySetting(MTP_notifyChats(), settings);
notifySettings.apply(MTP_notifyChats(), settings);
break;
case mtpc_inputNotifyBroadcasts:
notifySettings.applyNotifySetting(
notifySettings.apply(
MTP_notifyBroadcasts(),
settings);
break;
case mtpc_inputNotifyPeer: {
auto &peer = notifyPeer.c_inputNotifyPeer().vpeer();
const auto apply = [&](PeerId peerId) {
notifySettings.applyNotifySetting(
notifySettings.apply(
MTP_notifyPeer(peerToMTP(peerId)),
settings);
};