mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Invite Links Fixes
This commit is contained in:
parent
eafc9e4ed7
commit
415164748f
@ -320,8 +320,8 @@ private func inviteLinkListControllerEntries(presentationData: PresentationData,
|
||||
}
|
||||
|
||||
var hasLinks = false
|
||||
if let additionalInvites = additionalInvites, !additionalInvites.isEmpty {
|
||||
hasLinks = true
|
||||
if let additionalInvites = additionalInvites {
|
||||
hasLinks = !additionalInvites.isEmpty
|
||||
} else if let admin = admin, admin.count > 1 {
|
||||
hasLinks = true
|
||||
}
|
||||
|
@ -6252,7 +6252,7 @@ func presentAddMembers(context: AccountContext, parentController: ViewController
|
||||
default:
|
||||
break
|
||||
}
|
||||
} else if let channel = groupPeer as? TelegramChannel {
|
||||
} else if let channel = groupPeer as? TelegramChannel, (channel.addressName?.isEmpty ?? true) {
|
||||
if channel.flags.contains(.isCreator) || (channel.adminRights?.flags.contains(.canInviteUsers) == true) {
|
||||
canCreateInviteLink = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user