From a43ee4d213a83ec4b032a94f01df50db4677c734 Mon Sep 17 00:00:00 2001 From: Talon Brown Date: Thu, 27 Mar 2025 20:15:37 -0500 Subject: [PATCH] Added in extra check if the image is already a png. (cherry picked from commit 177c23a73379bd08a40a7e0340285495d0404dce) --- SignalServiceKit/Attachments/SignalAttachment.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SignalServiceKit/Attachments/SignalAttachment.swift b/SignalServiceKit/Attachments/SignalAttachment.swift index e71446feb16..410a9087298 100644 --- a/SignalServiceKit/Attachments/SignalAttachment.swift +++ b/SignalServiceKit/Attachments/SignalAttachment.swift @@ -928,7 +928,7 @@ public class SignalAttachment: NSObject { // transparent pixels (all screenshots fall into this bucket) // and there is not a simple, performant way, to check if there // are any transparent pixels in an image. - if dataSource.hasStickerLikeProperties { + if dataSource.hasStickerLikeProperties || attachment.fileExtension == "png" { dataFileExtension = "png" dataType = .png } else {