Prevent purge after move

This commit is contained in:
M66B 2023-03-24 11:30:35 +01:00
parent fdd15c2875
commit fa266cdec3
1 changed files with 9 additions and 0 deletions

View File

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