mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Simplified condition for display of invite links button.
This commit is contained in:
parent
08f2bbef4e
commit
8721b7a689
1 changed files with 1 additions and 4 deletions
|
@ -983,10 +983,7 @@ void Controller::fillManageSection() {
|
||||||
[=] { ShowEditPermissions(_navigation, _peer); },
|
[=] { ShowEditPermissions(_navigation, _peer); },
|
||||||
st::infoIconPermissions);
|
st::infoIconPermissions);
|
||||||
}
|
}
|
||||||
if (canEditInviteLinks
|
if (canEditInviteLinks) {
|
||||||
&& (canEditType
|
|
||||||
|| !_peer->isChannel()
|
|
||||||
|| !_peer->asChannel()->hasUsername())) {
|
|
||||||
auto count = Info::Profile::MigratedOrMeValue(
|
auto count = Info::Profile::MigratedOrMeValue(
|
||||||
_peer
|
_peer
|
||||||
) | rpl::map([=](not_null<PeerData*> peer) {
|
) | rpl::map([=](not_null<PeerData*> peer) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue