Show SVG in mini gallery

This commit is contained in:
M66B 2022-03-19 14:43:35 +01:00
parent 46a9127785
commit 68d9765d4c
1 changed files with 2 additions and 1 deletions

View File

@ -3173,7 +3173,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
List<EntityAttachment> images = new ArrayList<>();
if (thumbnails && bind_extras)
for (EntityAttachment attachment : attachments)
if (attachment.isAttachment() && attachment.isImage())
if (attachment.isAttachment() &&
(attachment.isImage() || "image/svg+xml".equals(attachment.getMimeType())))
images.add(attachment);
adapterImage.set(images);
grpImages.setVisibility(images.size() > 0 ? View.VISIBLE : View.GONE);