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_;
|
auto dialog_id = log_event.dialog_id_;
|
||||||
Dependencies dependencies;
|
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");
|
dependencies.resolve_force(td_, "RegetDialogLogEvent");
|
||||||
|
|
||||||
|
get_dialog_force(dialog_id, "RegetDialogLogEvent"); // load it if exists
|
||||||
|
|
||||||
if (!have_input_peer(dialog_id, AccessRights::Read)) {
|
if (!have_input_peer(dialog_id, AccessRights::Read)) {
|
||||||
binlog_erase(G()->td_db()->get_binlog(), event.id_);
|
binlog_erase(G()->td_db()->get_binlog(), event.id_);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user