mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
Prevent purge after move
This commit is contained in:
parent
fdd15c2875
commit
fa266cdec3
1 changed files with 9 additions and 0 deletions
|
@ -844,6 +844,15 @@ public class EntityOperation {
|
|||
if (MOVE.equals(name) || DELETE.equals(name))
|
||||
db.message().setMessageUiHide(message, false);
|
||||
|
||||
if (MOVE.equals(name))
|
||||
try {
|
||||
JSONArray jargs = new JSONArray(args);
|
||||
long target = jargs.getLong(0);
|
||||
db.operation().deleteOperation(target, PURGE);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
||||
if (SEEN.equals(name)) {
|
||||
EntityMessage m = db.message().getMessage(message);
|
||||
if (m != null) {
|
||||
|
|
Loading…
Reference in a new issue