Reset FTS on disabling account

This commit is contained in:
M66B
2023-12-20 18:41:40 +01:00
parent 2ca77844f4
commit 0403c81bd5
10 changed files with 26 additions and 10 deletions

View File

@@ -670,9 +670,11 @@ public class FragmentPop extends FragmentBase {
if (account.primary)
db.account().resetPrimary();
if (update)
if (update) {
db.account().updateAccount(account);
else
if (!account.synchronize)
db.message().resetFts(account.id);
} else
account.id = db.account().insertAccount(account);
args.putLong("account", account.id);