diff options
| author | levlam <levlam@telegram.org> | 2019-02-28 21:40:57 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2019-02-28 21:40:57 +0300 |
| commit | 8edd3b381192fbceb6fa80072e9ba38511ccbdf7 (patch) | |
| tree | 3721fdd7ef518f65539fd22d73c466af912d78d1 /td/telegram/Game.cpp | |
| parent | eddaa5252c13da9466795bb7eb6553498a8e3eeb (diff) | |
Fix adding thumbnails to file_ids list.
GitOrigin-RevId: 880d7b1720050685b502925aa281c6de4945e1fb
Diffstat (limited to 'td/telegram/Game.cpp')
| -rw-r--r-- | td/telegram/Game.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/td/telegram/Game.cpp b/td/telegram/Game.cpp index f934a8e13..1c01e905d 100644 --- a/td/telegram/Game.cpp +++ b/td/telegram/Game.cpp @@ -84,10 +84,14 @@ UserId Game::get_bot_user_id() const { return bot_user_id_; } -vector<FileId> Game::get_file_ids() const { +vector<FileId> Game::get_file_ids(const Td *td) const { auto result = photo_get_file_ids(photo_); if (animation_file_id_.is_valid()) { result.push_back(animation_file_id_); + auto thumbnail_file_id = td->animations_manager_->get_animation_thumbnail_file_id(animation_file_id_); + if (thumbnail_file_id.is_valid()) { + result.push_back(thumbnail_file_id); + } } return result; } |
