Revert "Reset FTS on disabling account"

This reverts commit 0403c81bd5.
This commit is contained in:
M66B
2023-12-20 21:02:59 +01:00
parent 435aa733d6
commit 1f454909d3
10 changed files with 10 additions and 26 deletions

View File

@@ -946,10 +946,8 @@ public interface DaoMessage {
" AND account IN (SELECT id FROM account WHERE pop = " + EntityAccount.TYPE_IMAP + ")")
int clearRawMessages();
@Query("UPDATE message SET fts = 0" +
" WHERE NOT (fts IS 0)" +
" AND (:account IS NULL OR message.account = :account)")
int resetFts(Long account);
@Query("UPDATE message SET fts = 0 WHERE NOT (fts IS 0)")
int resetFts();
@Query("DELETE FROM message WHERE id = :id")
int deleteMessage(long id);