Revert "Small improvement"

This reverts commit a443f1299f.
This commit is contained in:
M66B 2020-10-12 18:23:06 +02:00
parent 136effb6eb
commit be7fc3a0da
1 changed files with 4 additions and 2 deletions

View File

@ -453,8 +453,10 @@ public class EntityOperation {
try { try {
JSONArray jargs = new JSONArray(args); JSONArray jargs = new JSONArray(args);
long tmpid = jargs.optLong(2, -1); long tmpid = jargs.optLong(2, -1);
if (tmpid > 0) if (tmpid < 0)
db.message().deleteMessage(tmpid); return;
db.message().deleteMessage(tmpid);
} catch (JSONException ex) { } catch (JSONException ex) {
Log.e(ex); Log.e(ex);
} }