Fix sharing links to folders with multiple-user channels

This commit is contained in:
Ali 2023-04-13 17:02:04 +04:00
parent cb22202ce9
commit 50c6884bed

View File

@ -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
}