aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/StoryContent.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2024-09-10 13:03:30 +0300
committerlevlam <levlam@telegram.org>2024-09-10 13:03:30 +0300
commit8d674623d1ded31c95e4914b29f647791196a090 (patch)
tree0694b0f98e1316005313cccdd2fccbb22dc454d6 /td/telegram/StoryContent.cpp
parent2b223c304809de718c41922766a19e68f0869857 (diff)
Update layer to 189.
Diffstat (limited to 'td/telegram/StoryContent.cpp')
-rw-r--r--td/telegram/StoryContent.cpp4
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);