Browse Source

Mark single messages read only

main
M66B 6 years ago
parent
commit
4ae0fdc802
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      app/src/main/java/eu/faircode/email/ActivityView.java

+ 4
- 2
app/src/main/java/eu/faircode/email/ActivityView.java View File

@ -746,8 +746,10 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
if (!message.content) if (!message.content)
EntityOperation.queue(db, message, EntityOperation.BODY); 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(); db.setTransactionSuccessful();
} finally { } finally {


Loading…
Cancel
Save