mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme to layer 128.
This commit is contained in:
@@ -377,24 +377,19 @@ Data::FileOrigin PeerData::userpicPhotoOrigin() const {
|
||||
: Data::FileOrigin();
|
||||
}
|
||||
|
||||
void PeerData::updateUserpic(
|
||||
PhotoId photoId,
|
||||
MTP::DcId dcId,
|
||||
const MTPFileLocation &location) {
|
||||
setUserpicChecked(photoId, location.match([&](
|
||||
const MTPDfileLocationToBeDeprecated &deprecated) {
|
||||
return ImageLocation(
|
||||
void PeerData::updateUserpic(PhotoId photoId, MTP::DcId dcId) {
|
||||
setUserpicChecked(
|
||||
photoId,
|
||||
ImageLocation(
|
||||
{ StorageFileLocation(
|
||||
dcId,
|
||||
isSelf() ? peerToUser(id) : 0,
|
||||
MTP_inputPeerPhotoFileLocation(
|
||||
MTP_flags(0),
|
||||
input,
|
||||
deprecated.vvolume_id(),
|
||||
deprecated.vlocal_id())) },
|
||||
MTP_long(photoId))) },
|
||||
kUserpicSize,
|
||||
kUserpicSize);
|
||||
}));
|
||||
kUserpicSize));
|
||||
}
|
||||
|
||||
void PeerData::clearUserpic() {
|
||||
|
Reference in New Issue
Block a user