1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Small oops

This commit is contained in:
M66B 2021-04-24 22:23:15 +02:00
parent 4d15de0933
commit 068c655a6b

View file

@ -653,8 +653,10 @@ class Core {
try {
long fid = new JSONArray(op.args).optLong(0, -1L);
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);
}
} catch (JSONException ex) {
Log.e(ex);
}