Retry adding drafts without attachments

This commit is contained in:
M66B
2022-01-22 20:07:40 +01:00
parent 82c42122c0
commit a60dde6926
2 changed files with 7 additions and 1 deletions

View File

@@ -43,6 +43,10 @@ public interface DaoAttachment {
" ORDER BY sequence, subsequence")
List<EntityAttachment> getAttachments(long message);
@Query("SELECT COUNT(*) FROM attachment" +
" WHERE message = :message")
int countAttachments(long message);
@Query("SELECT * FROM attachment" +
" WHERE id = :id")
EntityAttachment getAttachment(long id);