Allow to get unread mentions and reactions in a message thread.
This commit is contained in:
parent
6a16492266
commit
edc660ba59
@ -22890,10 +22890,6 @@ std::pair<int32, vector<MessageId>> MessagesManager::search_dialog_messages(
|
||||
promise.set_error(Status::Error(400, "Filtering by sender is unsupported with the specified filter"));
|
||||
return result;
|
||||
}
|
||||
if (top_thread_message_id != MessageId()) {
|
||||
promise.set_error(Status::Error(400, "Filtering by message thread is unsupported with the specified filter"));
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
// Trying to use database
|
||||
|
@ -2290,9 +2290,10 @@ class CliClient final : public Actor {
|
||||
} else if (op == "replies") {
|
||||
ChatId chat_id;
|
||||
string message_thread_id;
|
||||
get_args(args, chat_id, message_thread_id);
|
||||
send_request(td_api::make_object<td_api::searchChatMessages>(chat_id, "", nullptr, 0, 0, 100, nullptr,
|
||||
as_message_thread_id(message_thread_id)));
|
||||
string filter;
|
||||
get_args(args, chat_id, message_thread_id, filter);
|
||||
send_request(td_api::make_object<td_api::searchChatMessages>(
|
||||
chat_id, "", nullptr, 0, 0, 100, as_search_messages_filter(filter), as_message_thread_id(message_thread_id)));
|
||||
} else if (op == "spvf") {
|
||||
search_chat_id_ = as_chat_id(args);
|
||||
send_request(td_api::make_object<td_api::searchChatMessages>(search_chat_id_, "", nullptr, 0, 0, 100,
|
||||
|
Loading…
x
Reference in New Issue
Block a user