Optimized attachment downloading, small fix

This commit is contained in:
M66B
2019-05-06 20:48:32 +02:00
parent aa806b7ce4
commit a036f0dfb0
2 changed files with 57 additions and 42 deletions

View File

@@ -67,6 +67,11 @@ public interface DaoAttachment {
" WHERE id = :id")
void setMessage(long id, long message);
@Query("UPDATE attachment" +
" SET name = :name, type = :type, disposition = :disposition, cid = :cid, encryption = :encryption" +
" WHERE id = :id")
void setInfo(long id, String name, String type, String disposition, String cid, Integer encryption);
@Query("UPDATE attachment" +
" SET error = NULL, progress = :progress, available = 0" +
" WHERE id = :id")