From a37423a119e42bfc881442d35c0f94b1df6fadf9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 3 May 2023 23:20:44 -0400 Subject: [PATCH] Fix gifs being converted to images on upload Closes #376 --- .../ComposeUI/Sources/ComposeUI/CoreData/DraftAttachment.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/ComposeUI/Sources/ComposeUI/CoreData/DraftAttachment.swift b/Packages/ComposeUI/Sources/ComposeUI/CoreData/DraftAttachment.swift index 8f75c487..c6526cf0 100644 --- a/Packages/ComposeUI/Sources/ComposeUI/CoreData/DraftAttachment.swift +++ b/Packages/ComposeUI/Sources/ComposeUI/CoreData/DraftAttachment.swift @@ -203,7 +203,8 @@ extension DraftAttachment { return } - if type.conforms(to: .image) { + if type != .gif, + type.conforms(to: .image) { let result = Self.processImageData(fileData, type: type, features: features, skipAllConversion: skipAllConversion) completion(.success(result)) } else {