mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Take into account synchronizing accounts for FTS stats
This commit is contained in:
@@ -292,7 +292,9 @@ public interface DaoMessage {
|
||||
|
||||
static String FTS_STATS = "SELECT SUM(fts) AS fts, COUNT(*) AS total FROM message" +
|
||||
" JOIN folder_view AS folder ON folder.id = message.folder" +
|
||||
" JOIN account_view AS account ON account.id = message.account" +
|
||||
" WHERE content" +
|
||||
" AND account.synchronize" +
|
||||
" AND folder.type <> '" + EntityFolder.OUTBOX + "'";
|
||||
|
||||
@Query(FTS_STATS)
|
||||
|
||||
Reference in New Issue
Block a user