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;