mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Removed interface for subscription links from mega groups.
This commit is contained in:
parent
838d5669ed
commit
0c3cabf4ac
1 changed files with 5 additions and 3 deletions
|
@ -1577,9 +1577,11 @@ object_ptr<Ui::BoxContent> EditLinkBox(
|
|||
const auto isGroup = !peer->isBroadcast();
|
||||
const auto isPublic = peer->isChannel() && peer->asChannel()->isPublic();
|
||||
auto object = Box([=](not_null<Ui::GenericBox*> box) {
|
||||
const auto fill = [=] {
|
||||
return Ui::FillCreateInviteLinkSubscriptionToggle(box, peer);
|
||||
};
|
||||
const auto fill = isGroup
|
||||
? Fn<Ui::InviteLinkSubscriptionToggle()>(nullptr)
|
||||
: [=] {
|
||||
return Ui::FillCreateInviteLinkSubscriptionToggle(box, peer);
|
||||
};
|
||||
if (creating) {
|
||||
Ui::CreateInviteLinkBox(box, fill, isGroup, isPublic, done);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue