Send fixes

This commit is contained in:
M66B
2020-06-25 23:29:33 +02:00
parent 63636158d8
commit d063ead7ee
3 changed files with 16 additions and 17 deletions

View File

@@ -6205,12 +6205,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
db.message().deleteMessage(id);
db.folder().setFolderError(message.folder, null);
if (message.identity != null) {
if (message.identity != null)
db.identity().setIdentityError(message.identity, null);
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("send:" + message.id, 1);
}
} else if (message.uid == null && account.protocol == EntityAccount.TYPE_IMAP) {
db.message().deleteMessage(id);
db.folder().setFolderError(message.folder, null);
@@ -6224,6 +6220,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
ServiceSynchronize.eval(context, "delete");
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("send:" + id, 1);
return null;
}