mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-18 21:28:54 +00:00
Skip reporting removed raw messages
This commit is contained in:
parent
f345fb8e0c
commit
7618dd949f
1 changed files with 13 additions and 11 deletions
|
@ -620,17 +620,19 @@ class Core {
|
|||
|
||||
ops.remove(op);
|
||||
|
||||
int resid = context.getResources().getIdentifier(
|
||||
"title_op_title_" + op.name,
|
||||
"string",
|
||||
context.getPackageName());
|
||||
String title = (resid == 0 ? null : context.getString(resid));
|
||||
if (title != null) {
|
||||
NotificationCompat.Builder builder =
|
||||
getNotificationError(context, "warning", title, ex);
|
||||
nm.notify(op.name + ":" + op.message,
|
||||
NotificationHelper.NOTIFICATION_TAGGED,
|
||||
builder.build());
|
||||
if (!MessageHelper.isRemoved(ex)) {
|
||||
int resid = context.getResources().getIdentifier(
|
||||
"title_op_title_" + op.name,
|
||||
"string",
|
||||
context.getPackageName());
|
||||
String title = (resid == 0 ? null : context.getString(resid));
|
||||
if (title != null) {
|
||||
NotificationCompat.Builder builder =
|
||||
getNotificationError(context, "warning", title, ex);
|
||||
nm.notify(op.name + ":" + op.message,
|
||||
NotificationHelper.NOTIFICATION_TAGGED,
|
||||
builder.build());
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue