Selectively keep encryption parts

This commit is contained in:
M66B
2021-08-29 22:02:15 +02:00
parent 945b903312
commit 017d201f88
2 changed files with 12 additions and 7 deletions

View File

@@ -140,6 +140,6 @@ public interface DaoAttachment {
@Query("DELETE FROM attachment" +
" WHERE message = :message" +
" AND encryption IS NULL")
int deleteAttachments(long message);
" AND (encryption IS NULL OR encryption NOT IN (:keep))")
int deleteAttachments(long message, int[] keep);
}