Consider images without name as inline

This commit is contained in:
M66B
2019-12-14 13:23:50 +01:00
parent d88abeaab5
commit f88879f8df
4 changed files with 11 additions and 8 deletions

View File

@@ -2978,8 +2978,7 @@ public class FragmentCompose extends FragmentBase {
for (EntityAttachment attachment : attachments)
if (attachment.encryption == null &&
("forward".equals(action) || "editasnew".equals(action) ||
(cid.contains(attachment.cid) ||
(attachment.isInline() && attachment.isImage())))) {
(cid.contains(attachment.cid) || attachment.isInlineImage()))) {
if (attachment.available) {
File source = attachment.getFile(context);
@@ -3131,7 +3130,7 @@ public class FragmentCompose extends FragmentBase {
available++;
if (attachment.progress != null)
downloading = true;
if (attachment.isInline() && attachment.isImage())
if (attachment.isInlineImage())
inline_images = true;
}