mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Clear separate notifications
This commit is contained in:
parent
244b6df87e
commit
6c2d5a8c15
1 changed files with 8 additions and 4 deletions
|
@ -4115,11 +4115,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||||
Long folder = args.getLong("folder");
|
Long folder = args.getLong("folder");
|
||||||
String type = args.getString("type");
|
String type = args.getString("type");
|
||||||
|
|
||||||
if (folder < 0)
|
|
||||||
folder = null;
|
|
||||||
|
|
||||||
DB db = DB.getInstance(context);
|
DB db = DB.getInstance(context);
|
||||||
db.message().ignoreAll(null, folder, type);
|
if (folder < 0) {
|
||||||
|
List<EntityAccount> accounts = db.account().getSynchronizingAccounts();
|
||||||
|
if (accounts != null)
|
||||||
|
for (EntityAccount account : accounts)
|
||||||
|
db.message().ignoreAll(account.id, null, type);
|
||||||
|
} else
|
||||||
|
db.message().ignoreAll(null, folder, type);
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue