mirror of https://github.com/M66B/FairEmail.git
Fix
This commit is contained in:
parent
5e98bbb645
commit
1269b0f49a
|
@ -157,18 +157,18 @@ class Core {
|
|||
if (op.message != null)
|
||||
message = db.message().getMessage(op.message);
|
||||
|
||||
if (message == null &&
|
||||
!EntityOperation.FETCH.equals(op.name) &&
|
||||
!EntityOperation.SYNC.equals(op.name) &&
|
||||
!EntityOperation.SUBSCRIBE.equals(op.name))
|
||||
throw new MessageRemovedException();
|
||||
|
||||
JSONArray jargs = new JSONArray(op.args);
|
||||
Map<EntityOperation, EntityMessage> similar = new HashMap<>();
|
||||
|
||||
try {
|
||||
// Operations should use database transaction when needed
|
||||
|
||||
if (message == null &&
|
||||
!EntityOperation.FETCH.equals(op.name) &&
|
||||
!EntityOperation.SYNC.equals(op.name) &&
|
||||
!EntityOperation.SUBSCRIBE.equals(op.name))
|
||||
throw new MessageRemovedException();
|
||||
|
||||
// Process similar operations
|
||||
boolean skip = false;
|
||||
for (int j = i + 1; j < ops.size(); j++) {
|
||||
|
|
Loading…
Reference in New Issue