diff --git a/Telegram/SourceFiles/boxes/peers/manage_peer_box.cpp b/Telegram/SourceFiles/boxes/peers/manage_peer_box.cpp index 878b98653..198ed571a 100644 --- a/Telegram/SourceFiles/boxes/peers/manage_peer_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/manage_peer_box.cpp @@ -102,7 +102,16 @@ void ShowRecentActions( not_null controller, not_null channel) { controller->showSection(AdminLog::SectionMemento(channel)); +} +bool HasEditInfoBox(not_null channel) { + if (channel->canEditInformation()) { + return true; + } else if (!channel->isPublic() && channel->canAddMembers()) { + // Edit invite link. + return true; + } + return false; } void FillManageBox( @@ -112,7 +121,7 @@ void FillManageBox( using Profile::ParticipantsBoxController; auto isGroup = channel->isMegagroup(); - if (channel->canEditInformation()) { + if (HasEditInfoBox(channel)) { AddButton( content, Lang::Viewer(isGroup