mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 03:43:55 +01:00
Fix
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user