Reduce memory and data usage

This commit is contained in:
M66B
2018-09-17 08:16:49 +00:00
parent 8fdab50b86
commit 56df41c2f6
2 changed files with 44 additions and 23 deletions

View File

@@ -39,12 +39,6 @@ public interface DaoAttachment {
" WHERE message = :message")
int getAttachmentCount(long message);
@Query("SELECT COUNT(id)" +
" FROM attachment" +
" WHERE message = :message" +
" AND NOT available")
int getAttachmentDownloadCount(long message);
@Query("SELECT COUNT(id)" +
" FROM attachment" +
" WHERE id = :id")