Fix get_channel_difference_if_needed for searchCallMessages.

This commit is contained in:
levlam 2022-02-22 22:54:00 +03:00
parent c9c9a73499
commit 7af61c03af

View File

@ -9737,6 +9737,9 @@ MessagesManager::MessagesInfo MessagesManager::get_messages_info(
void MessagesManager::get_channel_difference_if_needed(DialogId dialog_id, MessagesInfo &&messages_info,
Promise<MessagesInfo> &&promise) {
if (!dialog_id.is_valid()) {
return get_channel_differences_if_needed(std::move(messages_info), std::move(promise));
}
for (auto &message : messages_info.messages) {
if (need_channel_difference_to_add_message(dialog_id, message)) {
return run_after_channel_difference(