Take into account synchronizing accounts for FTS stats

pull/214/head
M66B 7 months ago
parent 0403c81bd5
commit 7360e1c9d4

@ -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)

Loading…
Cancel
Save