Take threading into account when searching

This commit is contained in:
M66B
2019-11-09 19:46:12 +01:00
parent 4049ad137b
commit 026fd10347
2 changed files with 18 additions and 5 deletions

View File

@@ -487,6 +487,9 @@ public interface DaoMessage {
" WHERE (:folder IS NULL AND folder.unified) OR id = :folder)")
int ignoreAll(Long account, Long folder);
@Query("UPDATE message SET ui_found = 1 WHERE id = :id")
int setMessageFound(long id);
@Query("UPDATE message SET ui_found = 1" +
" WHERE account = :account" +
" AND thread = :thread")