Use cursor for FTS

This commit is contained in:
M66B
2022-02-15 10:17:38 +01:00
parent 31943042a0
commit 54aea5a254
2 changed files with 5 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ public interface DaoMessage {
" AND NOT fts" +
" AND folder.type <> '" + EntityFolder.OUTBOX + "'" +
" ORDER BY message.received")
List<Long> getMessageFts();
Cursor getMessageFts();
@Query("SELECT message.id, account, thread, (:find IS NULL" +
" OR (:senders AND `from` LIKE :find COLLATE NOCASE)" + // no index