mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
Support new ('modern') API file locations.
This commit is contained in:
@@ -64,12 +64,11 @@ void ChannelData::setPhoto(const MTPChatPhoto &photo) {
|
||||
}
|
||||
|
||||
void ChannelData::setPhoto(PhotoId photoId, const MTPChatPhoto &photo) {
|
||||
if (photo.type() == mtpc_chatPhoto) {
|
||||
const auto &data = photo.c_chatPhoto();
|
||||
updateUserpic(photoId, data.vphoto_small);
|
||||
} else {
|
||||
photo.match([&](const MTPDchatPhoto & data) {
|
||||
updateUserpic(photoId, data.vdc_id.v, data.vphoto_small);
|
||||
}, [&](const MTPDchatPhotoEmpty &) {
|
||||
clearUserpic();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void ChannelData::setName(const QString &newName, const QString &newUsername) {
|
||||
|
Reference in New Issue
Block a user