2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme to layer 86.

This commit is contained in:
John Preston
2018-07-13 19:49:46 +03:00
parent b8b5ab6378
commit ee16070abe
26 changed files with 508 additions and 141 deletions

View File

@@ -970,8 +970,11 @@ void MainWidget::deletePhotoLayer(PhotoData *photo) {
} else if (photo->peer && !photo->peer->isUser() && photo->peer->userpicPhotoId() == photo->id) {
Messenger::Instance().peerClearPhoto(photo->peer->id);
} else {
MTP::send(MTPphotos_DeletePhotos(MTP_vector<MTPInputPhoto>(1, MTP_inputPhoto(MTP_long(photo->id), MTP_long(photo->access)))));
Auth().storage().remove(Storage::UserPhotosRemoveOne(me->bareId(), photo->id));
MTP::send(MTPphotos_DeletePhotos(
MTP_vector<MTPInputPhoto>(1, photo->mtpInput())));
Auth().storage().remove(Storage::UserPhotosRemoveOne(
me->bareId(),
photo->id));
}
})));
}