From bd6e6f28bc462fa1e63ff4c901a569bd5cdab2fe Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 7 Jul 2023 16:44:08 +0300 Subject: [PATCH] Fix handling of RegetDialogLogEvent. --- td/telegram/MessagesManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index ab5374905..44aca36cf 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -39995,9 +39995,11 @@ void MessagesManager::on_binlog_events(vector &&events) { auto dialog_id = log_event.dialog_id_; Dependencies dependencies; - dependencies.add_dialog_and_dependencies(dialog_id); + dependencies.add_dialog_dependencies(dialog_id); // dialog itself may not exist dependencies.resolve_force(td_, "RegetDialogLogEvent"); + get_dialog_force(dialog_id, "RegetDialogLogEvent"); // load it if exists + if (!have_input_peer(dialog_id, AccessRights::Read)) { binlog_erase(G()->td_db()->get_binlog(), event.id_); break;