Related attachments

This commit is contained in:
M66B
2022-02-12 20:39:49 +01:00
parent 0814865d0c
commit c95cc95994
7 changed files with 2759 additions and 20 deletions

View File

@@ -3928,7 +3928,8 @@ public class FragmentCompose extends FragmentBase {
if (image) {
attachment.cid = "<" + BuildConfig.APPLICATION_ID + "." + attachment.id + ">";
db.attachment().setCid(attachment.id, attachment.cid);
attachment.related = true;
db.attachment().setCid(attachment.id, attachment.cid, attachment.related);
}
} finally {
try {
@@ -4822,6 +4823,7 @@ public class FragmentCompose extends FragmentBase {
attachment.disposition = Part.INLINE;
else {
attachment.cid = null;
attachment.related = false;
attachment.disposition = Part.ATTACHMENT;
}