mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Update API scheme to layer 128.
This commit is contained in:
@@ -72,10 +72,7 @@ void UserData::setIsContact(bool is) {
|
||||
// see Serialize::readPeer as well
|
||||
void UserData::setPhoto(const MTPUserProfilePhoto &photo) {
|
||||
photo.match([&](const MTPDuserProfilePhoto &data) {
|
||||
updateUserpic(
|
||||
data.vphoto_id().v,
|
||||
data.vdc_id().v,
|
||||
data.vphoto_small());
|
||||
updateUserpic(data.vphoto_id().v, data.vdc_id().v);
|
||||
}, [&](const MTPDuserProfilePhotoEmpty &) {
|
||||
clearUserpic();
|
||||
});
|
||||
|
Reference in New Issue
Block a user