From af5765cd3147bc0e18d05f867857662f172065df Mon Sep 17 00:00:00 2001 From: Mike Renoir <> Date: Thu, 30 Mar 2023 15:21:09 +0400 Subject: [PATCH] error name --- .../Sources/TelegramEngine/Peers/Communities.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/TelegramEngine/Peers/Communities.swift b/submodules/TelegramCore/Sources/TelegramEngine/Peers/Communities.swift index 1a6c95a077..baa89f9e5b 100644 --- a/submodules/TelegramCore/Sources/TelegramEngine/Peers/Communities.swift +++ b/submodules/TelegramCore/Sources/TelegramEngine/Peers/Communities.swift @@ -60,7 +60,7 @@ func _internal_exportChatFolder(account: Account, filterId: Int32, title: String |> mapToSignal { inputPeers -> Signal in return account.network.request(Api.functions.communities.exportCommunityInvite(community: .inputCommunityDialogFilter(filterId: filterId), title: title, peers: inputPeers)) |> `catch` { error -> Signal in - if error.errorDescription == "INVITES_TOO_MUCH" || error.errorDescription == "FILTERS_TOO_MUCH" { + if error.errorDescription == "INVITES_TOO_MUCH" || error.errorDescription == "COMMUNITIES_TOO_MUCH" { return account.postbox.transaction { transaction -> (AppConfiguration, Bool) in return (currentAppConfiguration(transaction: transaction), transaction.getPeer(account.peerId)?.isPremium ?? false) } @@ -69,7 +69,7 @@ func _internal_exportChatFolder(account: Account, filterId: Int32, title: String let userDefaultLimits = UserLimitsConfiguration(appConfiguration: appConfiguration, isPremium: false) let userPremiumLimits = UserLimitsConfiguration(appConfiguration: appConfiguration, isPremium: true) - if error.errorDescription == "FILTERS_TOO_MUCH" { + if error.errorDescription == "COMMUNITIES_TOO_MUCH" { if isPremium { return .fail(.limitExceeded(limit: userPremiumLimits.maxSharedFolderJoin, premiumLimit: userPremiumLimits.maxSharedFolderJoin)) } else {