mirror of https://github.com/M66B/FairEmail.git
Contribute error to message
This commit is contained in:
parent
7307bc80c7
commit
5df36d89e6
|
@ -773,15 +773,15 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
if (message == null)
|
||||
throw new MessageRemovedException();
|
||||
|
||||
if (message.uid == null &&
|
||||
(EntityOperation.SEEN.equals(op.name) ||
|
||||
EntityOperation.DELETE.equals(op.name) ||
|
||||
EntityOperation.MOVE.equals(op.name)))
|
||||
throw new IllegalArgumentException(op.name + " without uid");
|
||||
|
||||
try {
|
||||
db.message().setMessageError(message.id, null);
|
||||
|
||||
if (message.uid == null &&
|
||||
(EntityOperation.SEEN.equals(op.name) ||
|
||||
EntityOperation.DELETE.equals(op.name) ||
|
||||
EntityOperation.MOVE.equals(op.name)))
|
||||
throw new IllegalArgumentException(op.name + " without uid");
|
||||
|
||||
JSONArray jargs = new JSONArray(op.args);
|
||||
|
||||
if (EntityOperation.SEEN.equals(op.name))
|
||||
|
|
Loading…
Reference in New Issue