Remove manual invite link generation as server already handles it on-demand

This commit is contained in:
Ilya Laktyushin
2021-01-30 00:01:40 +03:00
parent 8d90c90568
commit 760ca8d78b
3 changed files with 0 additions and 38 deletions

View File

@@ -218,20 +218,7 @@ public final class InviteLinkInviteController: ViewController {
override public func loadDisplayNode() {
self.displayNode = Node(context: self.context, peerId: self.peerId, controller: self)
}
override public func loadView() {
super.loadView()
let context = self.context
let peerId = self.peerId
let _ = (self.context.account.viewTracker.peerView(peerId) |> filter { $0.cachedData != nil } |> take(1) |> mapToSignal { view -> Signal<String?, NoError> in
return ensuredExistingPeerExportedInvitation(account: context.account, peerId: peerId)
|> mapToSignal { _ -> Signal<String?, NoError> in
return .complete()
}
}).start()
}
private var didAppearOnce: Bool = false
private var isDismissed: Bool = false
public override func viewDidAppear(_ animated: Bool) {