Change thread sort order

pull/174/head
M66B 5 years ago
parent b5e31ba603
commit a87f3ea025

@ -186,11 +186,11 @@ public interface DaoMessage {
" WHEN folder.type = '" + EntityFolder.OUTBOX + "' THEN 2" + " WHEN folder.type = '" + EntityFolder.OUTBOX + "' THEN 2" +
" WHEN folder.type = '" + EntityFolder.DRAFTS + "' THEN 3" + " WHEN folder.type = '" + EntityFolder.DRAFTS + "' THEN 3" +
" WHEN folder.type = '" + EntityFolder.SENT + "' THEN 4" + " WHEN folder.type = '" + EntityFolder.SENT + "' THEN 4" +
" WHEN folder.type = '" + EntityFolder.ARCHIVE + "' THEN 5" + " WHEN folder.type = '" + EntityFolder.TRASH + "' THEN 5" +
" WHEN folder.type = '" + EntityFolder.TRASH + "' THEN 6" + " WHEN folder.type = '" + EntityFolder.JUNK + "' THEN 6" +
" WHEN folder.type = '" + EntityFolder.JUNK + "' THEN 7" + " WHEN folder.type = '" + EntityFolder.SYSTEM + "' THEN 7" +
" WHEN folder.type = '" + EntityFolder.SYSTEM + "' THEN 8" + " WHEN folder.type = '" + EntityFolder.USER + "' THEN 8" +
" WHEN folder.type = '" + EntityFolder.USER + "' THEN 9" + " WHEN folder.type = '" + EntityFolder.ARCHIVE + "' THEN 9" +
" ELSE 999 END") " ELSE 999 END")
// The folder type sort order should match the duplicate algorithm // The folder type sort order should match the duplicate algorithm
DataSource.Factory<Integer, TupleMessageEx> pagedThread(long account, String thread, Long id, boolean ascending, boolean debug); DataSource.Factory<Integer, TupleMessageEx> pagedThread(long account, String thread, Long id, boolean ascending, boolean debug);

@ -153,11 +153,11 @@ public class EntityFolder extends EntityOrder implements Serializable {
OUTBOX, OUTBOX,
DRAFTS, DRAFTS,
SENT, SENT,
ARCHIVE,
TRASH, TRASH,
JUNK, JUNK,
SYSTEM, SYSTEM,
USER USER,
ARCHIVE
)); ));
private static Map<String, String> GUESS_FOLDER_TYPE = new HashMap<String, String>() {{ private static Map<String, String> GUESS_FOLDER_TYPE = new HashMap<String, String>() {{

Loading…
Cancel
Save