Fix handling of RegetDialogLogEvent.
This commit is contained in:
parent
e323256e65
commit
bd6e6f28bc
@ -39995,9 +39995,11 @@ void MessagesManager::on_binlog_events(vector<BinlogEvent> &&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;
|
||||
|
Loading…
Reference in New Issue
Block a user