2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update API scheme to layer 102.

This commit is contained in:
John Preston
2019-06-06 18:42:15 +03:00
parent 37df26fc34
commit 14b82698f8
12 changed files with 113 additions and 84 deletions

View File

@@ -261,11 +261,11 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update) {
if (update.has_profile_photo()) {
user->owner().processPhoto(update.vprofile_photo);
}
update.vlink.match([&](const MTPDcontacts_link & link) {
App::feedUserLink(
MTP_int(peerToUser(user->id)),
link.vmy_link,
link.vforeign_link);
update.vsettings.match([&](const MTPDpeerSettings &data) {
//App::feedUserLink(
// MTP_int(peerToUser(user->id)),
// link.vmy_link,
// link.vforeign_link);
});
user->session().api().applyNotifySettings(
MTP_inputNotifyPeer(user->input),