diff --git a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp index fd01c31701..85e56ef3a2 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp @@ -2379,7 +2379,7 @@ auto ParticipantsBoxController::computeType( } break; } - if (user && !channel->isBroadcast()) { + if (user && !_peer->isBroadcast()) { const auto isSelf = user->isSelf(); const auto canEditSelf = isSelf && !_peer->amRestricted(ChatRestriction::EditRank);