mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Separate threads of different accounts
This commit is contained in:
parent
2462c90975
commit
36a440b6a4
1 changed files with 3 additions and 2 deletions
|
@ -66,8 +66,9 @@ public interface DaoMessage {
|
|||
" FROM message" +
|
||||
" LEFT JOIN account ON account.id = message.account" +
|
||||
" JOIN folder ON folder.id = message.folder" +
|
||||
" LEFT JOIN folder f ON f.id = :folder" +
|
||||
" WHERE (NOT message.ui_hide OR :debug)" +
|
||||
" JOIN folder f ON f.id = :folder" +
|
||||
" WHERE (message.account IS NULL OR message.account = f.account)" +
|
||||
" AND (NOT message.ui_hide OR :debug)" +
|
||||
" AND (NOT :found OR ui_found = :found)" +
|
||||
" GROUP BY CASE WHEN message.thread IS NULL THEN message.id ELSE message.thread END" +
|
||||
" HAVING SUM(CASE WHEN folder.id = :folder THEN 1 ELSE 0 END) > 0" +
|
||||
|
|
Loading…
Reference in a new issue