1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Skip operation seen for local only messages

(outbox, unappended drafts)
This commit is contained in:
M66B 2018-08-02 17:58:40 +00:00
parent 3fe434b60c
commit 930fb92327

View file

@ -74,8 +74,13 @@ public class EntityOperation {
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;