This commit is contained in:
M66B
2019-09-28 16:41:02 +02:00
parent 5e98bbb645
commit 1269b0f49a

View File

@@ -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++) {