1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Sort archived messages on top when viewing the archive folder

This commit is contained in:
M66B 2021-02-25 17:46:33 +01:00
parent fda266da4a
commit 436dd06d08

View file

@ -236,7 +236,8 @@ public interface DaoMessage {
" WHEN folder.type = '" + EntityFolder.JUNK + "' THEN 6" +
" WHEN folder.type = '" + EntityFolder.SYSTEM + "' THEN 7" +
" WHEN folder.type = '" + EntityFolder.USER + "' THEN 8" +
" WHEN folder.type = '" + EntityFolder.ARCHIVE + "' THEN 9" +
" WHEN folder.type = '" + EntityFolder.ARCHIVE + "' THEN" +
" CASE WHEN :filter_archive THEN 9 ELSE 0 END" +
" ELSE 999 END")
// The folder type sort order should match the duplicate algorithm
DataSource.Factory<Integer, TupleMessageEx> pagedThread(