Ensure ordering between messages.getMessagesReactions and channels.readMessageContents.
This commit is contained in:
parent
6b342e9b0d
commit
75e00df016
@ -134,8 +134,10 @@ class GetMessagesReactionsQuery final : public Td::ResultHandler {
|
||||
auto input_peer = td_->messages_manager_->get_input_peer(dialog_id_, AccessRights::Read);
|
||||
CHECK(input_peer != nullptr);
|
||||
|
||||
send_query(G()->net_query_creator().create(telegram_api::messages_getMessagesReactions(
|
||||
std::move(input_peer), MessageId::get_server_message_ids(message_ids_))));
|
||||
send_query(
|
||||
G()->net_query_creator().create(telegram_api::messages_getMessagesReactions(
|
||||
std::move(input_peer), MessageId::get_server_message_ids(message_ids_)),
|
||||
{{dialog_id_}}));
|
||||
}
|
||||
|
||||
void on_result(BufferSlice packet) final {
|
||||
|
@ -1796,8 +1796,10 @@ class ReadChannelMessagesContentsQuery final : public Td::ResultHandler {
|
||||
return on_error(Status::Error(400, "Can't access the chat"));
|
||||
}
|
||||
|
||||
send_query(G()->net_query_creator().create(telegram_api::channels_readMessageContents(
|
||||
std::move(input_channel), MessageId::get_server_message_ids(message_ids))));
|
||||
send_query(
|
||||
G()->net_query_creator().create(telegram_api::channels_readMessageContents(
|
||||
std::move(input_channel), MessageId::get_server_message_ids(message_ids)),
|
||||
{{channel_id_}}));
|
||||
}
|
||||
|
||||
void on_result(BufferSlice packet) final {
|
||||
|
Loading…
Reference in New Issue
Block a user