Don't resave chat when sending postponed updateChatReadInbox.

This commit is contained in:
levlam 2023-05-01 15:17:08 +03:00
parent f8853fb938
commit 03e4013c9d

View File

@ -12985,6 +12985,7 @@ void MessagesManager::set_dialog_last_read_inbox_message_id(Dialog *d, MessageId
}
}
on_dialog_updated(d->dialog_id, source);
send_update_chat_read_inbox(d, force_update, source);
}
@ -30571,7 +30572,6 @@ void MessagesManager::send_update_chat_read_inbox(const Dialog *d, bool force, c
CHECK(d != nullptr);
LOG_CHECK(d->is_update_new_chat_sent) << "Wrong " << d->dialog_id << " in send_update_chat_read_inbox from "
<< source;
on_dialog_updated(d->dialog_id, source);
if (!force && (running_get_difference_ || running_get_channel_difference(d->dialog_id) ||
get_channel_difference_to_log_event_id_.count(d->dialog_id) != 0)) {
LOG(INFO) << "Postpone updateChatReadInbox in " << d->dialog_id << "(" << get_dialog_title(d->dialog_id) << ") to "