From 8fddb49cfaf3bc661da963159226cebb971725cd Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 1 Feb 2021 16:17:28 +0400 Subject: [PATCH] Fix build --- submodules/TelegramCore/Sources/InvitationLinks.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/InvitationLinks.swift b/submodules/TelegramCore/Sources/InvitationLinks.swift index 7a5eb1434f..c1eccd675d 100644 --- a/submodules/TelegramCore/Sources/InvitationLinks.swift +++ b/submodules/TelegramCore/Sources/InvitationLinks.swift @@ -14,7 +14,7 @@ public func ensuredExistingPeerExportedInvitation(account: Account, peerId: Peer if let cachedData = transaction.getPeerCachedData(peerId: peerId) as? CachedChannelData, cachedData.exportedInvitation != nil && !revokeExisted { return .single(cachedData.exportedInvitation) } else { - return account.network.request(Api.functions.messages.exportChatInvite(peer: inputPeer)) + return account.network.request(Api.functions.messages.exportChatInvite(flags: 0, peer: inputPeer, expireDate: nil, usageLimit: nil)) |> retryRequest |> mapToSignal { result -> Signal in return account.postbox.transaction { transaction -> ExportedInvitation? in @@ -37,7 +37,7 @@ public func ensuredExistingPeerExportedInvitation(account: Account, peerId: Peer if let cachedData = transaction.getPeerCachedData(peerId: peerId) as? CachedGroupData, cachedData.exportedInvitation != nil && !revokeExisted { return .single(cachedData.exportedInvitation) } else { - return account.network.request(Api.functions.messages.exportChatInvite(peer: inputPeer)) + return account.network.request(Api.functions.messages.exportChatInvite(flags: 0, peer: inputPeer, expireDate: nil, usageLimit: nil)) |> retryRequest |> mapToSignal { result -> Signal in return account.postbox.transaction { transaction -> ExportedInvitation? in