Skip to content
Permalink
Browse files

Skip operation seen for local only messages

(outbox, unappended drafts)
  • Loading branch information...
M66B committed Aug 2, 2018
1 parent 3fe434b commit 930fb9232779dd854cba0c7c0e9a1203420fbd08
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/src/main/java/eu/faircode/email/EntityOperation.java
@@ -74,8 +74,13 @@ private static void queue(Context context, EntityMessage message, String name, J
DaoOperation dao = DB.getInstance(context).operation();

int purged = 0;
if (SEEN.equals(name))
if (SEEN.equals(name)) {
if (message.uid == null) {
// local message
return;
}
purged = dao.deleteOperations(message.id, name);
}

EntityOperation operation = new EntityOperation();
operation.message = message.id;

0 comments on commit 930fb92

Please sign in to comment.
You can’t perform that action at this time.