mirror of https://github.com/M66B/FairEmail.git
Prevent purge after move
This commit is contained in:
parent
fdd15c2875
commit
fa266cdec3
|
@ -844,6 +844,15 @@ public class EntityOperation {
|
||||||
if (MOVE.equals(name) || DELETE.equals(name))
|
if (MOVE.equals(name) || DELETE.equals(name))
|
||||||
db.message().setMessageUiHide(message, false);
|
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)) {
|
if (SEEN.equals(name)) {
|
||||||
EntityMessage m = db.message().getMessage(message);
|
EntityMessage m = db.message().getMessage(message);
|
||||||
if (m != null) {
|
if (m != null) {
|
||||||
|
|
Loading…
Reference in New Issue