Inline attachments required a content ID

This commit is contained in:
M66B
2019-06-22 14:32:42 +02:00
parent 23cc120c3a
commit af5b3ba467
4 changed files with 4 additions and 5 deletions

View File

@@ -1104,8 +1104,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
boolean calendar = false;
List<EntityAttachment> a = new ArrayList<>();
for (EntityAttachment attachment : attachments) {
boolean inline = (TextUtils.isEmpty(attachment.name) ||
(attachment.isInline() && attachment.isImage()));
boolean inline = (attachment.isInline() || TextUtils.isEmpty(attachment.name));
if (inline)
has_inline = true;
if (attachment.progress == null && !attachment.available)