Browse Source

Fixed seen

main
M66B 6 years ago
parent
commit
437ef94b6c
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      app/src/main/java/eu/faircode/email/ActivityView.java
  2. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentMessage.java
  3. +1
    -1
      app/src/main/java/eu/faircode/email/ServiceSynchronize.java

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

@ -502,7 +502,7 @@ public class ActivityView extends ActivityBase implements FragmentManager.OnBack
for (EntityMessage tmessage : db.message().getMessageByThread(message.account, message.thread)) {
db.message().setMessageUiSeen(tmessage.id, true);
EntityOperation.queue(db, tmessage, EntityOperation.SEEN, tmessage.ui_seen);
EntityOperation.queue(db, tmessage, EntityOperation.SEEN, true);
}
db.setTransactionSuccessful();


+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentMessage.java View File

@ -413,7 +413,7 @@ public class FragmentMessage extends FragmentEx {
for (EntityMessage tmessage : db.message().getMessageByThread(message.account, message.thread)) {
db.message().setMessageUiSeen(tmessage.id, !message.ui_seen);
EntityOperation.queue(db, tmessage, EntityOperation.SEEN, tmessage.ui_seen);
EntityOperation.queue(db, tmessage, EntityOperation.SEEN, !tmessage.ui_seen);
}
db.setTransactionSuccessful();


+ 1
- 1
app/src/main/java/eu/faircode/email/ServiceSynchronize.java View File

@ -1286,7 +1286,7 @@ public class ServiceSynchronize extends LifecycleService {
}
if (message != null) {
if (message.seen != seen) {
if (message.seen != seen || message.seen != message.ui_seen) {
message.seen = seen;
message.ui_seen = seen;
db.message().updateMessage(message);


Loading…
Cancel
Save