Add debug.
GitOrigin-RevId: 62c48a35f4a1c442e4d6dce71fcf5e02b2bdbd8e
This commit is contained in:
parent
4a3784155a
commit
7a570572f8
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -462,7 +462,8 @@ class GetDeepLinkInfoQuery : public Td::ResultHandler {
|
||||
Promise<td_api::object_ptr<td_api::deepLinkInfo>> promise_;
|
||||
|
||||
public:
|
||||
explicit GetDeepLinkInfoQuery(Promise<td_api::object_ptr<td_api::deepLinkInfo>> &&promise) : promise_(std::move(promise)) {
|
||||
explicit GetDeepLinkInfoQuery(Promise<td_api::object_ptr<td_api::deepLinkInfo>> &&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<td_api::deepLinkInfo>(get_formatted_text_object(text), need_update));
|
||||
return promise_.set_value(
|
||||
td_api::make_object<td_api::deepLinkInfo>(get_formatted_text_object(text), need_update));
|
||||
}
|
||||
default:
|
||||
UNREACHABLE();
|
||||
|
Reference in New Issue
Block a user