pull/198/head
M66B 4 years ago
parent 4d15de0933
commit 068c655a6b

@ -653,8 +653,10 @@ class Core {
try { try {
long fid = new JSONArray(op.args).optLong(0, -1L); long fid = new JSONArray(op.args).optLong(0, -1L);
EntityFolder target = db.folder().getFolder(fid); EntityFolder target = db.folder().getFolder(fid);
if (target != null && EntityFolder.TRASH.equals(folder.type)) if (target != null && EntityFolder.TRASH.equals(target.type)) {
Log.w(folder.name + " deleting id=" + message.id);
db.message().deleteMessage(message.id); db.message().deleteMessage(message.id);
}
} catch (JSONException ex) { } catch (JSONException ex) {
Log.e(ex); Log.e(ex);
} }

Loading…
Cancel
Save