Keep removed message on seen

This commit is contained in:
M66B 2021-05-13 07:23:02 +02:00
parent 1faaa46df8
commit 119ade3d01
1 changed files with 3 additions and 1 deletions

View File

@ -609,7 +609,9 @@ class Core {
db.operation().deleteOperation(op.id);
// Cleanup messages
if (message != null && MessageHelper.isRemoved(ex))
if (message != null &&
MessageHelper.isRemoved(ex) &&
!EntityOperation.SEEN.equals(op.name))
db.message().deleteMessage(message.id);
db.setTransactionSuccessful();