Fix crash in legacy groups viewing.

This commit is contained in:
John Preston
2026-03-02 12:52:56 +04:00
parent 932ea86b45
commit 15778fc6db
@@ -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);