mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Reset FTS on disabling account
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user