From 15778fc6dbead5dd1e320302c46f5accf9165283 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 2 Mar 2026 12:52:56 +0400 Subject: [PATCH] Fix crash in legacy groups viewing. --- Telegram/SourceFiles/boxes/peers/edit_participants_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);