diff options
| author | levlam <levlam@telegram.org> | 2024-09-10 13:03:30 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-09-10 13:03:30 +0300 |
| commit | 8d674623d1ded31c95e4914b29f647791196a090 (patch) | |
| tree | 0694b0f98e1316005313cccdd2fccbb22dc454d6 /td/telegram/StoryContent.cpp | |
| parent | 2b223c304809de718c41922766a19e68f0869857 (diff) | |
Update layer to 189.
Diffstat (limited to 'td/telegram/StoryContent.cpp')
| -rw-r--r-- | td/telegram/StoryContent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/td/telegram/StoryContent.cpp b/td/telegram/StoryContent.cpp index b2c89915e..1484cdb5f 100644 --- a/td/telegram/StoryContent.cpp +++ b/td/telegram/StoryContent.cpp @@ -230,8 +230,8 @@ unique_ptr<StoryContent> get_story_content(Td *td, tl_object_ptr<telegram_api::M CHECK(parsed_document.file_id.is_valid()); FileId alt_file_id; - if (media->alt_document_ != nullptr) { - auto alt_document_ptr = std::move(media->alt_document_); + if (media->alt_documents_.size() == 1u) { + auto alt_document_ptr = std::move(media->alt_documents_[0]); int32 alt_document_id = alt_document_ptr->get_id(); if (alt_document_id == telegram_api::documentEmpty::ID) { LOG(ERROR) << "Receive alternative " << to_string(alt_document_ptr); |
