From 8add7cda73df9d8c7b247b5623c44ad93285293f Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 27 Jun 2019 13:58:04 +0300 Subject: [PATCH] Fix registering sticker thumbnails. GitOrigin-RevId: 24316f587c3e316f0488d5a65dfbef161f621a59 --- td/telegram/StickersManager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 24c0e1c9..73c06c7d 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -1282,8 +1282,9 @@ std::pair 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;