mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactoring
This commit is contained in:
@@ -92,7 +92,7 @@ public func addSavedSticker(postbox: Postbox, network: Network, file: TelegramMe
|
||||
if let stickerStringRepresentations = stickerStringRepresentations {
|
||||
return postbox.transaction { transaction -> Void in
|
||||
addSavedSticker(transaction: transaction, file: file, stringRepresentations: stickerStringRepresentations)
|
||||
} |> mapError { _ in return AddSavedStickerError.generic }
|
||||
} |> mapError { _ -> AddSavedStickerError in }
|
||||
} else {
|
||||
return .fail(.notFound)
|
||||
}
|
||||
@@ -102,7 +102,7 @@ public func addSavedSticker(postbox: Postbox, network: Network, file: TelegramMe
|
||||
}
|
||||
}
|
||||
return .complete()
|
||||
} |> mapError { _ in return AddSavedStickerError.generic } |> switchToLatest
|
||||
} |> mapError { _ -> AddSavedStickerError in } |> switchToLatest
|
||||
}
|
||||
|
||||
public func addSavedSticker(transaction: Transaction, file: TelegramMediaFile, stringRepresentations: [String]) {
|
||||
|
||||
Reference in New Issue
Block a user