mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-20 21:27:07 +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");
|
||||
String type = args.getString("type");
|
||||
|
||||
if (folder < 0)
|
||||
folder = null;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue