Fix registering sticker thumbnails.
GitOrigin-RevId: 24316f587c3e316f0488d5a65dfbef161f621a59
This commit is contained in:
parent
572808eb43
commit
8add7cda73
@ -1282,8 +1282,9 @@ std::pair<int64, FileId> StickersManager::on_get_sticker_document(tl_object_ptr<
|
||||
|
||||
PhotoSize thumbnail;
|
||||
for (auto &thumb : document->thumbs_) {
|
||||
auto photo_size = get_photo_size(td_->file_manager_.get(), {FileType::Thumbnail, 0}, 0, 0, "", dc_id, DialogId(),
|
||||
std::move(thumb), has_webp_thumbnail(sticker), false);
|
||||
auto photo_size = get_photo_size(td_->file_manager_.get(), {FileType::Thumbnail, 0}, document_id,
|
||||
document->access_hash_, document->file_reference_.as_slice().str(), dc_id,
|
||||
DialogId(), std::move(thumb), has_webp_thumbnail(sticker), false);
|
||||
if (photo_size.get_offset() == 0) {
|
||||
thumbnail = std::move(photo_size.get<0>());
|
||||
break;
|
||||
|
Reference in New Issue
Block a user