From 4ae0fdc80203431462744a9f2601fc87f0d5ef56 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 22 Sep 2018 06:37:11 +0000 Subject: [PATCH] Mark single messages read only --- app/src/main/java/eu/faircode/email/ActivityView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityView.java b/app/src/main/java/eu/faircode/email/ActivityView.java index 01f93cacbe..984c21ec39 100644 --- a/app/src/main/java/eu/faircode/email/ActivityView.java +++ b/app/src/main/java/eu/faircode/email/ActivityView.java @@ -746,8 +746,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB if (!message.content) EntityOperation.queue(db, message, EntityOperation.BODY); - db.message().setMessageUiSeen(message.id, true); - EntityOperation.queue(db, message, EntityOperation.SEEN, true); + if (!message.threaded) { + db.message().setMessageUiSeen(message.id, true); + EntityOperation.queue(db, message, EntityOperation.SEEN, true); + } db.setTransactionSuccessful(); } finally {