mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-19 10:25:29 +00:00
Skip deleting browsed messages on sync
This commit is contained in:
parent
4cf330dfb6
commit
0c6b3a1f31
1 changed files with 4 additions and 2 deletions
|
@ -441,7 +441,8 @@ public interface DaoMessage {
|
|||
" AND received < :received" +
|
||||
" AND NOT uid IS NULL" +
|
||||
" AND (ui_seen OR :unseen)" +
|
||||
" AND NOT ui_flagged")
|
||||
" AND NOT ui_flagged" +
|
||||
" AND NOT ui_browsed")
|
||||
List<Long> getMessagesBefore(long folder, long received, boolean unseen);
|
||||
|
||||
@Query("DELETE FROM message" +
|
||||
|
@ -449,6 +450,7 @@ public interface DaoMessage {
|
|||
" AND received < :received" +
|
||||
" AND NOT uid IS NULL" +
|
||||
" AND (ui_seen OR :unseen)" +
|
||||
" AND NOT ui_flagged")
|
||||
" AND NOT ui_flagged" +
|
||||
" AND NOT ui_browsed")
|
||||
int deleteMessagesBefore(long folder, long received, boolean unseen);
|
||||
}
|
Loading…
Add table
Reference in a new issue