Allow moving snoozed messages from outbox to draft

This commit is contained in:
M66B
2019-01-08 10:02:59 +00:00
parent f5b4bec7e1
commit 4a7974e7e2
2 changed files with 47 additions and 5 deletions

View File

@@ -58,6 +58,11 @@ public interface DaoAttachment {
" AND cid = :cid")
EntityAttachment getAttachment(long message, String cid);
@Query("UPDATE attachment" +
" SET message = :message" +
" WHERE id = :id")
void setMessage(long id, long message);
@Query("UPDATE attachment" +
" SET progress = :progress, available = 0" +
" WHERE id = :id")