mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Skip operation seen for local only messages
(outbox, unappended drafts)
This commit is contained in:
parent
3fe434b60c
commit
930fb92327
1 changed files with 6 additions and 1 deletions
|
@ -74,8 +74,13 @@ public class EntityOperation {
|
||||||
DaoOperation dao = DB.getInstance(context).operation();
|
DaoOperation dao = DB.getInstance(context).operation();
|
||||||
|
|
||||||
int purged = 0;
|
int purged = 0;
|
||||||
if (SEEN.equals(name))
|
if (SEEN.equals(name)) {
|
||||||
|
if (message.uid == null) {
|
||||||
|
// local message
|
||||||
|
return;
|
||||||
|
}
|
||||||
purged = dao.deleteOperations(message.id, name);
|
purged = dao.deleteOperations(message.id, name);
|
||||||
|
}
|
||||||
|
|
||||||
EntityOperation operation = new EntityOperation();
|
EntityOperation operation = new EntityOperation();
|
||||||
operation.message = message.id;
|
operation.message = message.id;
|
||||||
|
|
Loading…
Reference in a new issue