aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-05-29 16:53:34 +0200
committerfiaxh <git@lightrise.org>2019-06-01 18:55:04 +0200
commitdd6c860aed79c5adf0db08142bbbf7b8ec3fbe67 (patch)
tree3dc3c3aaf946c35993ac17d90b5211f75bf4d285 /libdino/src/entity
parent5456a85777638d7753ad4377bd01a0c51c3a3f14 (diff)
downloaddino-dd6c860aed79c5adf0db08142bbbf7b8ec3fbe67.tar.gz
dino-dd6c860aed79c5adf0db08142bbbf7b8ec3fbe67.zip
Don't change type of a conversation
Diffstat (limited to 'libdino/src/entity')
-rw-r--r--libdino/src/entity/conversation.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdino/src/entity/conversation.vala b/libdino/src/entity/conversation.vala
index 9e8a3406..0537ee61 100644
--- a/libdino/src/entity/conversation.vala
+++ b/libdino/src/entity/conversation.vala
@@ -136,7 +136,7 @@ public class Conversation : Object {
}
public static bool equals_func(Conversation conversation1, Conversation conversation2) {
- return conversation1.counterpart.equals(conversation2.counterpart) && conversation1.account.equals(conversation2.account);
+ return conversation1.counterpart.equals(conversation2.counterpart) && conversation1.account.equals(conversation2.account) && conversation1.type_ == conversation2.type_;
}
public static uint hash_func(Conversation conversation) {