Remove default source from have_dialog_force.
This commit is contained in:
parent
7968aad0d4
commit
2b980ec215
@ -1248,7 +1248,7 @@ void GroupCallManager::set_group_call_default_join_as(DialogId dialog_id, Dialog
|
|||||||
if (!dialog_id.is_valid()) {
|
if (!dialog_id.is_valid()) {
|
||||||
return promise.set_error(Status::Error(400, "Invalid chat identifier specified"));
|
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"));
|
return promise.set_error(Status::Error(400, "Chat not found"));
|
||||||
}
|
}
|
||||||
if (!td_->messages_manager_->have_input_peer(dialog_id, AccessRights::Read)) {
|
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;
|
break;
|
||||||
case DialogType::Chat:
|
case DialogType::Chat:
|
||||||
case DialogType::Channel:
|
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"));
|
return promise.set_error(Status::Error(400, "Participant chat not found"));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -513,7 +513,7 @@ class MessagesManager final : public Actor {
|
|||||||
string get_dialog_title(DialogId dialog_id) const;
|
string get_dialog_title(DialogId dialog_id) const;
|
||||||
|
|
||||||
bool have_dialog(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(DialogId dialog_id) const;
|
||||||
bool have_dialog_info_force(DialogId dialog_id) const;
|
bool have_dialog_info_force(DialogId dialog_id) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user