From d03c74e9f7cde8cb3f31bd6f7d72a4c6f899509a Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 7 Feb 2019 21:05:40 +0300 Subject: [PATCH] Fix get_web_page_file_ids. GitOrigin-RevId: cb8c7067a05e1136ae8588df3aee5e3327de00c3 --- td/telegram/WebPagesManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/td/telegram/WebPagesManager.cpp b/td/telegram/WebPagesManager.cpp index 9e6dac18..a21b3fdd 100644 --- a/td/telegram/WebPagesManager.cpp +++ b/td/telegram/WebPagesManager.cpp @@ -3743,6 +3743,11 @@ void WebPagesManager::append_rich_text_file_ids(const RichText &rich_text, vecto if (rich_text.type == RichText::Type::Icon) { CHECK(rich_text.document_file_id.is_valid()); file_ids.push_back(rich_text.document_file_id); + auto thumbnail_file_id = + G()->td().get_actor_unsafe()->documents_manager_->get_document_thumbnail_file_id(rich_text.document_file_id); + if (thumbnail_file_id.is_valid()) { + file_ids.push_back(thumbnail_file_id); + } } else { for (auto &text : rich_text.texts) { append_rich_text_file_ids(text, file_ids);