From 59f36b3b3d8c8ee39b167c3b551ad68d0ea4eefc Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 10 Apr 2019 16:37:06 +0300 Subject: [PATCH] Add more debug. GitOrigin-RevId: f435e1b8531f02092f218189853afc54c47e83b2 --- td/telegram/MessagesManager.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 3662d0aa8..5fe578628 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -16262,8 +16262,14 @@ void MessagesManager::do_send_message_group(int64 media_album_id) { if (input_media == nullptr) { // TODO return CHECK auto file_id = get_message_content_file_id(m->content.get()); - LOG(FATAL) << to_string(get_message_content_object(m->content.get(), td_, m->date, m->is_content_secret)) << " " - << to_string(td_->file_manager_->get_file_object(file_id)) << " " << m->ttl; + auto file_view = td_->file_manager_->get_file_view(file_id); + bool has_remote = file_view.has_remote_location(); + bool is_web = has_remote ? file_view.remote_location().is_web() : false; + LOG(FATAL) << m->ttl << " " << has_remote << " " << file_view.has_alive_remote_location() << " " + << file_view.has_active_upload_remote_location() << " " + << file_view.has_active_download_remote_location() << " " << file_view.is_encrypted() << " " << is_web + << " " << file_view.has_url() << " " + << to_string(get_message_content_object(m->content.get(), td_, m->date, m->is_content_secret)); } auto entities = get_input_message_entities(td_->contacts_manager_.get(), caption, "do_send_message_group"); int32 input_single_media_flags = 0;