Added workaround for S/MIME signed content in encrypted message (2)

This commit is contained in:
M66B
2022-09-19 17:20:40 +02:00
parent e241522132
commit 7f1b8cd60e
2 changed files with 23 additions and 18 deletions

View File

@@ -127,6 +127,12 @@ public interface DaoAttachment {
" AND NOT (related IS :related)")
void setCid(long id, String cid, Boolean related);
@Query("UPDATE attachment" +
" SET encryption = :encryption" +
" WHERE id = :id" +
" AND NOT (encryption IS :encryption)")
void setEncryption(long id, Integer encryption);
@Query("UPDATE attachment" +
" SET media_uri = :media_uri" +
" WHERE id = :id" +