mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Small improvement
This commit is contained in:
parent
68f1d14d00
commit
7e737a21f6
1 changed files with 3 additions and 3 deletions
|
@ -2063,21 +2063,21 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
attachment.id = db.attachment().insertAttachment(attachment);
|
||||
}
|
||||
} else {
|
||||
if (message.seen != seen || message.seen != message.ui_seen) {
|
||||
if (!message.seen.equals(seen) || !message.seen.equals(message.ui_seen)) {
|
||||
message.seen = seen;
|
||||
message.ui_seen = seen;
|
||||
db.message().updateMessage(message);
|
||||
Log.i(Helper.TAG, folder.name + " updated id=" + message.id + " uid=" + message.uid + " seen=" + seen);
|
||||
}
|
||||
|
||||
if (message.answered != answered || message.answered != message.ui_answered) {
|
||||
if (!message.answered.equals(answered) || !message.answered.equals(message.ui_answered)) {
|
||||
message.answered = answered;
|
||||
message.ui_answered = answered;
|
||||
db.message().updateMessage(message);
|
||||
Log.i(Helper.TAG, folder.name + " updated id=" + message.id + " uid=" + message.uid + " answered=" + answered);
|
||||
}
|
||||
|
||||
if (message.flagged != flagged || message.flagged != message.ui_flagged) {
|
||||
if (!message.flagged.equals(flagged) || !message.flagged.equals(message.ui_flagged)) {
|
||||
message.flagged = flagged;
|
||||
message.ui_flagged = flagged;
|
||||
db.message().updateMessage(message);
|
||||
|
|
Loading…
Reference in a new issue