From 7a570572f8c169cdd5389f6cf01b8147e4b9f3b9 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 13 Apr 2018 00:09:50 +0300 Subject: [PATCH] Add debug. GitOrigin-RevId: 62c48a35f4a1c442e4d6dce71fcf5e02b2bdbd8e --- td/telegram/MessagesManager.cpp | 3 ++- td/telegram/Td.cpp | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 7eafef72..7e238766 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -23440,7 +23440,8 @@ MessageId MessagesManager::get_message_id_by_random_id(Dialog *d, int64 random_i Message *m = on_get_message_from_database(d->dialog_id, d, r_value.ok()); if (m != nullptr) { CHECK(m->random_id == random_id); - CHECK(d->random_id_to_message_id[random_id] == m->message_id); + CHECK(d->random_id_to_message_id[random_id] == m->message_id) + << random_id << " " << d->random_id_to_message_id[random_id] << " " << m->message_id; return m->message_id; } } diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index f5cc4954..9288cca6 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -462,7 +462,8 @@ class GetDeepLinkInfoQuery : public Td::ResultHandler { Promise> promise_; public: - explicit GetDeepLinkInfoQuery(Promise> &&promise) : promise_(std::move(promise)) { + explicit GetDeepLinkInfoQuery(Promise> &&promise) + : promise_(std::move(promise)) { } void send(Slice link) { @@ -478,8 +479,8 @@ class GetDeepLinkInfoQuery : public Td::ResultHandler { pos++; } link.truncate(pos); - send_query(G()->net_query_creator().create(create_storer(telegram_api::help_getDeepLinkInfo(link.str())), DcId::main(), - NetQuery::Type::Common, NetQuery::AuthFlag::Off)); + send_query(G()->net_query_creator().create(create_storer(telegram_api::help_getDeepLinkInfo(link.str())), + DcId::main(), NetQuery::Type::Common, NetQuery::AuthFlag::Off)); } void on_result(uint64 id, BufferSlice packet) override { @@ -506,7 +507,8 @@ class GetDeepLinkInfoQuery : public Td::ResultHandler { entities.clear(); } FormattedText text{std::move(info->message_), std::move(entities)}; - return promise_.set_value(td_api::make_object(get_formatted_text_object(text), need_update)); + return promise_.set_value( + td_api::make_object(get_formatted_text_object(text), need_update)); } default: UNREACHABLE();