Skip to content

Commit

Permalink
Fix reload_dialog_administrators.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Mar 10, 2023
1 parent 7d9a443 commit 6c92eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/ContactsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17515,7 +17515,7 @@ void ContactsManager::reload_dialog_administrators(DialogId dialog_id,
case DialogType::Channel: {
auto channel_id = dialog_id.get_channel_id();
if (is_broadcast_channel(channel_id) && !get_channel_status(channel_id).is_administrator()) {
return promise.set_error(Status::Error(400, "Administrator list is inaccessible"));
return query_promise.set_error(Status::Error(400, "Administrator list is inaccessible"));
}
auto hash = get_vector_hash(transform(dialog_administrators, [](const DialogAdministrator &administrator) {
return static_cast<uint64>(administrator.get_user_id().get());
Expand Down

0 comments on commit 6c92eaf

Please sign in to comment.