Added basic AMP support

This commit is contained in:
M66B
2022-02-12 22:41:14 +01:00
parent e9873e1f6a
commit 472b3c5408
5 changed files with 75 additions and 2 deletions

View File

@@ -3025,6 +3025,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
List<EntityAttachment> a = new ArrayList<>();
for (EntityAttachment attachment : attachments) {
boolean inline = (attachment.isEncryption() ||
"text/x-amp-html".equals(attachment.type) ||
(attachment.isInline() && attachment.isImage()));
if (inline && attachment.available)
has_inline = true;