mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix sharing links to folders with multiple-user channels
This commit is contained in:
parent
cb22202ce9
commit
50c6884bed
@ -9,7 +9,7 @@ public func canShareLinkToPeer(peer: EnginePeer) -> Bool {
|
||||
case let .channel(channel):
|
||||
if channel.flags.contains(.isCreator) || (channel.adminRights?.rights.contains(.canInviteUsers) == true) {
|
||||
isEnabled = true
|
||||
} else if channel.username != nil {
|
||||
} else if channel.username != nil || !channel.usernames.isEmpty {
|
||||
if !channel.flags.contains(.requestToJoin) {
|
||||
isEnabled = true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user