Remove default source from have_dialog_force.

This commit is contained in:
levlam 2021-09-01 19:41:00 +03:00
parent 7968aad0d4
commit 2b980ec215
2 changed files with 3 additions and 3 deletions

View File

@ -1248,7 +1248,7 @@ void GroupCallManager::set_group_call_default_join_as(DialogId dialog_id, Dialog
if (!dialog_id.is_valid()) {
return promise.set_error(Status::Error(400, "Invalid chat identifier specified"));
}
if (!td_->messages_manager_->have_dialog_force(dialog_id)) {
if (!td_->messages_manager_->have_dialog_force(dialog_id, "set_group_call_default_join_as")) {
return promise.set_error(Status::Error(400, "Chat not found"));
}
if (!td_->messages_manager_->have_input_peer(dialog_id, AccessRights::Read)) {
@ -1263,7 +1263,7 @@ void GroupCallManager::set_group_call_default_join_as(DialogId dialog_id, Dialog
break;
case DialogType::Chat:
case DialogType::Channel:
if (!td_->messages_manager_->have_dialog_force(as_dialog_id)) {
if (!td_->messages_manager_->have_dialog_force(as_dialog_id, "set_group_call_default_join_as 2")) {
return promise.set_error(Status::Error(400, "Participant chat not found"));
}
break;

View File

@ -513,7 +513,7 @@ class MessagesManager final : public Actor {
string get_dialog_title(DialogId dialog_id) const;
bool have_dialog(DialogId dialog_id) const;
bool have_dialog_force(DialogId dialog_id, const char *source = "have_dialog_force");
bool have_dialog_force(DialogId dialog_id, const char *source);
bool have_dialog_info(DialogId dialog_id) const;
bool have_dialog_info_force(DialogId dialog_id) const;