Revert "Consider images without name as inline"

This reverts commit f88879f8df.
This commit is contained in:
M66B
2019-12-14 16:09:12 +01:00
parent 5c87d2464e
commit 006533b15e
4 changed files with 8 additions and 11 deletions

View File

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