mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-10-01 03:11:43 +00:00
Allow to create channel invite link in boxes.
SetupChannelBox (public/private) and MaxInviteBox are suggesting to copy the channel invite link. Now they suggest to create it in case the channel didn't have the invite link already.
This commit is contained in:
@@ -77,7 +77,7 @@ void ParticipantsBoxController::Start(gsl::not_null<ChannelData*> channel, Role
|
||||
void ParticipantsBoxController::addNewItem() {
|
||||
if (_role == Role::Members) {
|
||||
if (_channel->membersCount() >= Global::ChatSizeMax()) {
|
||||
Ui::show(Box<MaxInviteBox>(_channel->inviteLink()), KeepOtherLayers);
|
||||
Ui::show(Box<MaxInviteBox>(_channel), KeepOtherLayers);
|
||||
} else {
|
||||
auto already = MembersAlreadyIn();
|
||||
for (auto i = 0, count = delegate()->peerListFullRowsCount(); i != count; ++i) {
|
||||
|
Reference in New Issue
Block a user