mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-31 20:25:38 +00:00
Small oops
This commit is contained in:
parent
4d15de0933
commit
068c655a6b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue