Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2007-11-20 00:07:54 +0300
committerYann Leboulanger <asterix@lagaule.org>2007-11-20 00:07:54 +0300
commitee2fd87004c9ee60e4842e23585b97841c82ea23 (patch)
treef07da66125be1668346cc2d78cab8b2ec0e1b615
parentcc31416919ed3a385d1dbece580f48e7b08a391e (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.py7
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):