From afee8631e1b4203b966d84fc999028d05572c05c Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Wed, 17 Feb 2021 12:33:38 -0500 Subject: [PATCH] Do not compress stickers. --- .../thoughtcrime/securesms/jobs/AttachmentCompressionJob.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/AttachmentCompressionJob.java b/app/src/main/java/org/thoughtcrime/securesms/jobs/AttachmentCompressionJob.java index 36094e664e..2e231a1a3f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/AttachmentCompressionJob.java +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/AttachmentCompressionJob.java @@ -160,7 +160,9 @@ public final class AttachmentCompressionJob extends BaseJob { throws UndeliverableMessageException { try { - if (MediaUtil.isVideo(attachment)) { + if (attachment.isSticker()) { + Log.d(TAG, "Sticker, not compressing."); + } else if (MediaUtil.isVideo(attachment)) { Log.i(TAG, "Compressing video."); attachment = transcodeVideoIfNeededToDatabase(context, attachmentDatabase, attachment, constraints, EventBus.getDefault(), this::isCanceled); if (!constraints.isSatisfied(context, attachment)) {