From a0005ba3b10d9d1811e351aaf0989e49343af7a8 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 17 Dec 2018 09:59:27 +0100 Subject: [PATCH] Fixed updating message properties --- .../java/eu/faircode/email/TupleMessageEx.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/TupleMessageEx.java b/app/src/main/java/eu/faircode/email/TupleMessageEx.java index 6f252ab7e2..244deb9b81 100644 --- a/app/src/main/java/eu/faircode/email/TupleMessageEx.java +++ b/app/src/main/java/eu/faircode/email/TupleMessageEx.java @@ -34,7 +34,22 @@ public class TupleMessageEx extends EntityMessage { @Override public boolean uiEquals(Object obj) { - return super.uiEquals(obj); + if (obj instanceof TupleMessageEx) { + TupleMessageEx other = (TupleMessageEx) obj; + return (super.uiEquals(obj) && + (this.accountName == null ? other.accountName == null : this.accountName.equals(other.accountName)) && + (this.accountColor == null ? other.accountColor == null : this.accountColor.equals(other.accountColor)) && + //this.accountNotify == other.accountNotify && + this.folderName.equals(other.folderName) && + (this.folderDisplay == null ? other.folderDisplay == null : this.folderDisplay.equals(other.folderDisplay)) && + this.folderType.equals(other.folderType) && + this.count == other.count && + this.unseen == other.unseen && + this.unflagged == other.unflagged && + this.attachments == other.attachments && + this.duplicate == other.duplicate); + } + return false; } @Override