diff options
| author | levlam <levlam@telegram.org> | 2026-05-20 21:28:31 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-05-20 21:28:31 +0300 |
| commit | 0160f50b5d5d2ff1e68f319410a2e92a54220ac6 (patch) | |
| tree | 5719e5463b343132f453ce48271b488f09f8de03 /td/telegram/StoryContent.cpp | |
| parent | abc964ddebcf3dc41a2229197718d2948837cd98 (diff) | |
Improve Document::is_empty() name.
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 bc7c3f469..29e635aae 100644 --- a/td/telegram/StoryContent.cpp +++ b/td/telegram/StoryContent.cpp @@ -257,7 +257,7 @@ unique_ptr<StoryContent> get_story_content(Td *td, tl_object_ptr<telegram_api::M auto parsed_document = td->documents_manager_->on_get_document( telegram_api::move_object_as<telegram_api::document>(document_ptr), owner_dialog_id, false, false, nullptr, Document::Type::Video, DocumentsManager::Subtype::Story); - if (parsed_document.empty() || parsed_document.type != Document::Type::Video) { + if (parsed_document.is_empty() || parsed_document.type != Document::Type::Video) { LOG(ERROR) << "Receive a story with " << parsed_document; break; } @@ -274,7 +274,7 @@ unique_ptr<StoryContent> get_story_content(Td *td, tl_object_ptr<telegram_api::M auto parsed_alt_document = td->documents_manager_->on_get_document( telegram_api::move_object_as<telegram_api::document>(alt_document_ptr), owner_dialog_id, false, false, nullptr, Document::Type::Video, DocumentsManager::Subtype::Story); - if (parsed_alt_document.empty() || parsed_alt_document.type != Document::Type::Video) { + if (parsed_alt_document.is_empty() || parsed_alt_document.type != Document::Type::Video) { LOG(ERROR) << "Receive invalid alternative document " << parsed_alt_document; } else { alt_file_id = parsed_alt_document.file_id; |
