From ff1c29881777900aea4ce383930855aef8d9aa0a Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Tue, 8 Jun 2021 17:00:07 -0300 Subject: [PATCH] Allow video gifs to download as if they were images. --- .../java/org/thoughtcrime/securesms/util/AttachmentUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/util/AttachmentUtil.java b/app/src/main/java/org/thoughtcrime/securesms/util/AttachmentUtil.java index ca5ea64451..e65703c3c6 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/util/AttachmentUtil.java +++ b/app/src/main/java/org/thoughtcrime/securesms/util/AttachmentUtil.java @@ -46,6 +46,8 @@ public class AttachmentUtil { attachment.isSticker()) { return true; + } else if (attachment.isVideoGif()) { + return NotInCallConstraint.isNotInConnectedCall() && allowedTypes.contains("image"); } else if (isNonDocumentType(contentType)) { return NotInCallConstraint.isNotInConnectedCall() && allowedTypes.contains(MediaUtil.getDiscreteMimeType(contentType)); } else {