Refactoring

This commit is contained in:
M66B
2020-04-15 08:52:01 +02:00
parent 6f7afbd230
commit a0b735c416
4 changed files with 15 additions and 10 deletions

View File

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