diff --git a/submodules/InviteLinksUI/Sources/InviteLinkInviteController.swift b/submodules/InviteLinksUI/Sources/InviteLinkInviteController.swift index d41cd0f719..7e738708fa 100644 --- a/submodules/InviteLinksUI/Sources/InviteLinkInviteController.swift +++ b/submodules/InviteLinksUI/Sources/InviteLinkInviteController.swift @@ -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 in - return ensuredExistingPeerExportedInvitation(account: context.account, peerId: peerId) - |> mapToSignal { _ -> Signal in - return .complete() - } - }).start() - } - private var didAppearOnce: Bool = false private var isDismissed: Bool = false public override func viewDidAppear(_ animated: Bool) { diff --git a/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift b/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift index 4c323119cd..dc82eed6e1 100644 --- a/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift +++ b/submodules/PeerInfoUI/Sources/ChannelVisibilityController.swift @@ -851,13 +851,6 @@ public func channelVisibilityController(context: AccountContext, peerId: PeerId, let revokeLinkDisposable = MetaDisposable() actionsDisposable.add(revokeLinkDisposable) - actionsDisposable.add((context.account.viewTracker.peerView(peerId) |> filter { $0.cachedData != nil } |> take(1) |> mapToSignal { view -> Signal in - return ensuredExistingPeerExportedInvitation(account: context.account, peerId: peerId) - |> mapToSignal { _ -> Signal in - return .complete() - } - }).start()) - let arguments = ChannelVisibilityControllerArguments(context: context, updateCurrentType: { type in updateState { state in return state.withUpdatedSelectedType(type) diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index 8004539521..6f3865b9a2 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -1063,24 +1063,6 @@ public final class VoiceChatController: ViewController { strongSelf.accountPeer = accountPeer strongSelf.updateMembers(muteState: strongSelf.effectiveMuteState, callMembers: strongSelf.currentCallMembers ?? ([], nil), invitedPeers: strongSelf.currentInvitedPeers ?? [], speakingPeers: strongSelf.currentSpeakingPeers ?? Set()) - if let peer = peerViewMainPeer(view) { - if let channel = peer as? TelegramChannel { - let addressName = channel.addressName ?? "" - if channel.flags.contains(.isCreator) || channel.hasPermission(.inviteMembers) { - if addressName.isEmpty { - let _ = ensuredExistingPeerExportedInvitation(account: strongSelf.context.account, peerId: call.peerId).start() - } - } - } else if let group = peer as? TelegramGroup { - switch group.role { - case .creator, .admin: - let _ = ensuredExistingPeerExportedInvitation(account: strongSelf.context.account, peerId: call.peerId).start() - default: - break - } - } - } - strongSelf.didSetDataReady = true strongSelf.controller?.dataReady.set(true) }