1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Keep removed message on seen

This commit is contained in:
M66B 2021-05-13 07:23:02 +02:00
parent 1faaa46df8
commit 119ade3d01

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();