mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-04 02:15:47 +00:00
Don't try sharing animated stickers as an image
This commit is contained in:
@@ -91,7 +91,7 @@ private func collectExternalShareItems(strings: PresentationStrings, postbox: Po
|
||||
case .progress:
|
||||
return .single(.progress)
|
||||
case let .done(data):
|
||||
if file.isSticker, let dimensions = file.dimensions {
|
||||
if file.isSticker, !file.isAnimatedSticker, let dimensions = file.dimensions {
|
||||
return chatMessageSticker(postbox: postbox, file: file, small: false, fetched: true, onlyFullSize: true)
|
||||
|> map { f -> ExternalShareItemStatus in
|
||||
let context = f(TransformImageArguments(corners: ImageCorners(), imageSize: dimensions, boundingSize: dimensions, intrinsicInsets: UIEdgeInsets(), emptyColor: nil, scale: 1.0))
|
||||
|
||||
Reference in New Issue
Block a user