diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2007-11-20 00:07:54 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2007-11-20 00:07:54 +0300 |
commit | ee2fd87004c9ee60e4842e23585b97841c82ea23 (patch) | |
tree | f07da66125be1668346cc2d78cab8b2ec0e1b615 | |
parent | cc31416919ed3a385d1dbece580f48e7b08a391e (diff) |
fix metacontact behaviour when 2 contacts in the group have same jid, same priority and same status. fixes #3565
-rw-r--r-- | src/common/contacts.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/contacts.py b/src/common/contacts.py index 0fd1765a8..0c06e809a 100644 --- a/src/common/contacts.py +++ b/src/common/contacts.py @@ -420,6 +420,13 @@ class Contacts: return 1 if jid2 > jid1: return -1 + # If all is the same, compare accounts, they can't be the same + account1 = data1['account'] + account2 = data2['account'] + if account1 > account2: + return 1 + if account2 > account1: + return -1 return 0 def get_metacontacts_big_brother(self, family): |