Simplified condition for display of invite links button.

This commit is contained in:
23rd 2022-04-07 19:54:20 +03:00
parent 08f2bbef4e
commit 8721b7a689
1 changed files with 1 additions and 4 deletions

View File

@ -983,10 +983,7 @@ void Controller::fillManageSection() {
[=] { ShowEditPermissions(_navigation, _peer); },
st::infoIconPermissions);
}
if (canEditInviteLinks
&& (canEditType
|| !_peer->isChannel()
|| !_peer->asChannel()->hasUsername())) {
if (canEditInviteLinks) {
auto count = Info::Profile::MigratedOrMeValue(
_peer
) | rpl::map([=](not_null<PeerData*> peer) {