mirror of https://github.com/M66B/FairEmail.git
Remove CID on converting inline image to attachment
This commit is contained in:
parent
533d809893
commit
baaed52144
|
@ -115,10 +115,10 @@ public interface DaoAttachment {
|
|||
void setType(long id, String type);
|
||||
|
||||
@Query("UPDATE attachment" +
|
||||
" SET disposition = :disposition" +
|
||||
" SET disposition = :disposition, cid = :cid" +
|
||||
" WHERE id = :id" +
|
||||
" AND NOT (disposition IS :disposition)")
|
||||
void setDisposition(long id, String disposition);
|
||||
" AND NOT (disposition IS :disposition AND cid IS :cid)")
|
||||
void setDisposition(long id, String disposition, String cid);
|
||||
|
||||
@Query("UPDATE attachment" +
|
||||
" SET cid = :cid" +
|
||||
|
|
|
@ -5769,7 +5769,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
if (attachment.isInline() && attachment.isImage()) {
|
||||
Log.i("Converting to attachment cid=" + attachment.cid);
|
||||
attachment.disposition = Part.ATTACHMENT;
|
||||
db.attachment().setDisposition(attachment.id, attachment.disposition);
|
||||
attachment.cid = null;
|
||||
db.attachment().setDisposition(attachment.id, attachment.disposition, attachment.cid);
|
||||
dirty = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue