Check for duplicates in archive only

pull/147/head
M66B 6 years ago
parent ee7771dedd
commit beae1121d3

@ -128,7 +128,7 @@ public interface DaoMessage {
", CASE WHEN folder.type = '" + EntityFolder.DRAFTS + "' THEN 1 ELSE 0 END AS drafts" + ", CASE WHEN folder.type = '" + EntityFolder.DRAFTS + "' THEN 1 ELSE 0 END AS drafts" +
", 1 AS visible" + ", 1 AS visible" +
", ((folder.type = '" + EntityFolder.ARCHIVE + "' OR folder.type = '" + EntityFolder.SENT + "')" + ", (folder.type = '" + EntityFolder.ARCHIVE + "'" +
" AND EXISTS (" + " AND EXISTS (" +
" SELECT * FROM message m1" + " SELECT * FROM message m1" +
" JOIN folder f1 ON f1.id = m1.folder" + " JOIN folder f1 ON f1.id = m1.folder" +

Loading…
Cancel
Save