mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Allow public links if private are not available
This commit is contained in:
@@ -600,8 +600,14 @@ public class SendInviteLinkScreen: ViewControllerComponentContainer {
|
||||
|
||||
private var presenceDisposable: Disposable?
|
||||
|
||||
public init(context: AccountContext, link: String?, peers: [EnginePeer]) {
|
||||
public init(context: AccountContext, peer: EnginePeer, link: String?, peers: [EnginePeer]) {
|
||||
self.context = context
|
||||
|
||||
var link = link
|
||||
if link == nil, let addressName = peer.addressName {
|
||||
link = "https://t.me/\(addressName)"
|
||||
}
|
||||
|
||||
self.link = link
|
||||
self.peers = peers
|
||||
|
||||
|
||||
Reference in New Issue
Block a user