mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
one more error for shared folders
This commit is contained in:
parent
8d79979422
commit
e63db3c53e
@ -21,6 +21,7 @@ public func canShareLinkToPeer(peer: EnginePeer) -> Bool {
|
||||
public enum ExportChatFolderError {
|
||||
case generic
|
||||
case limitExceeded
|
||||
case limitFiltersExceeded
|
||||
}
|
||||
|
||||
public struct ExportedChatFolderLink: Equatable {
|
||||
@ -62,6 +63,8 @@ func _internal_exportChatFolder(account: Account, filterId: Int32, title: String
|
||||
|> mapError { error -> ExportChatFolderError in
|
||||
if error.errorDescription == "INVITES_TOO_MUCH" {
|
||||
return .limitExceeded
|
||||
} else if error.errorDescription == "FILTERS_TOO_MUCH" {
|
||||
return .limitFiltersExceeded
|
||||
} else {
|
||||
return .generic
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user