Various Fixes

This commit is contained in:
Ilya Laktyushin
2021-01-29 22:19:07 +03:00
parent 307ac7319e
commit 8d90c90568
9 changed files with 4482 additions and 4381 deletions

View File

@@ -221,6 +221,15 @@ public final class InviteLinkInviteController: ViewController {
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