Fix send_get_dialog_notification_settings_query.
GitOrigin-RevId: ed9f4abf5c2bb68c6fccc6cc1b55017e3c941296
This commit is contained in:
parent
40db52670d
commit
d61befbb1e
@ -19948,6 +19948,10 @@ void MessagesManager::send_get_dialog_notification_settings_query(DialogId dialo
|
||||
return;
|
||||
}
|
||||
|
||||
if (!have_input_peer(dialog_id, AccessRights::Read)) {
|
||||
return promise.set_error(Status::Error(400, "Can't access the chat"));
|
||||
}
|
||||
|
||||
td_->create_handler<GetDialogNotifySettingsQuery>()->send(dialog_id);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user