Don't default to public link setup for already existing groups and channels

This commit is contained in:
Ali 2020-01-04 23:01:54 +04:00
parent 3fc1a4fb04
commit 2acf826a5f

View File

@ -465,8 +465,10 @@ private func channelVisibilityControllerEntries(presentationData: PresentationDa
selectedType = .publicChannel
} else if let cachedChannelData = view.cachedData as? CachedChannelData, cachedChannelData.peerGeoLocation != nil {
selectedType = .publicChannel
} else {
} else if case .initialSetup = mode {
selectedType = .publicChannel
} else {
selectedType = .privateChannel
}
}
}