Allow video gifs to download as if they were images.

This commit is contained in:
Alex Hart
2021-06-08 17:00:07 -03:00
parent dfe804dfa0
commit ff1c298817

View File

@@ -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 {