Fix send_get_dialog_notification_settings_query.

GitOrigin-RevId: ed9f4abf5c2bb68c6fccc6cc1b55017e3c941296
This commit is contained in:
levlam 2018-05-11 18:48:04 +03:00
parent 40db52670d
commit d61befbb1e

View File

@ -19948,6 +19948,10 @@ void MessagesManager::send_get_dialog_notification_settings_query(DialogId dialo
return; 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); td_->create_handler<GetDialogNotifySettingsQuery>()->send(dialog_id);
} }