[geary: 1/8] conversation-list: fix a different participants being counted as one
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary: 1/8] conversation-list: fix a different participants being counted as one
- Date: Sun, 28 Apr 2019 00:53:38 +0000 (UTC)
commit 89f9854edceb41b0e1c04fe57900e2171b2c0083
Author: Konstantin Kharlamov <Hi-Angel yandex ru>
Date: Mon Apr 8 00:45:50 2019 +0300
conversation-list: fix a different participants being counted as one
Notification mails, such as github, gitlab, often gonna have the same
mail address, although participants are different. Fix the comparator to
take this situation into account.
Signed-off-by: Konstantin Kharlamov <Hi-Angel yandex ru>
src/client/conversation-list/formatted-conversation-data.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/client/conversation-list/formatted-conversation-data.vala
b/src/client/conversation-list/formatted-conversation-data.vala
index 16cca0cd..484783fc 100644
--- a/src/client/conversation-list/formatted-conversation-data.vala
+++ b/src/client/conversation-list/formatted-conversation-data.vala
@@ -77,7 +77,8 @@ public class FormattedConversationData : Geary.BaseObject {
}
public bool equal_to(ParticipantDisplay other) {
- return address.equal_to(other.address);
+ return address.equal_to(other.address)
+ && address.name == other.address.name;
}
public uint hash() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]