1
0
Fork 0
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:
M66B 2023-03-24 11:30:35 +01:00
parent fdd15c2875
commit fa266cdec3

View file

@ -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) {