2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme to layer 78.

This commit is contained in:
John Preston
2018-04-25 13:24:48 +04:00
parent 93f6d4b6e7
commit 65f968ec1b
10 changed files with 194 additions and 80 deletions

View File

@@ -1623,7 +1623,10 @@ void ApiWrap::requestNotifySetting(PeerData *peer) {
notifySettingReceived(notifyPeer, result);
_notifySettingRequests.remove(peer);
}).fail([this, notifyPeer, peer](const RPCError &error) {
notifySettingReceived(notifyPeer, MTP_peerNotifySettingsEmpty());
notifySettingReceived(notifyPeer, MTP_peerNotifySettings(
MTP_flags(MTPDpeerNotifySettings::Flag::f_show_previews),
MTP_int(0),
MTP_string("default")));
_notifySettingRequests.remove(peer);
}).send();