Check for duplicates in archive only

This commit is contained in:
M66B 2019-01-22 18:13:20 +00:00
parent ee7771dedd
commit beae1121d3
1 changed files with 1 additions and 1 deletions

View File

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