From 9f0b1e50cd3eee88d91eff6b0d7059b605632dec Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 10 Aug 2005 17:26:43 +0000 Subject: [PATCH] roster now shows the correct state image --- src/roster_window.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 9ccaa6d5a..13c0b25e8 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -230,19 +230,12 @@ class RosterWindow: iters = self.get_contact_iter(jid, account) if len(iters) == 0: return - contact_instances = gajim.get_contact_instances_from_jid(account, - jid) - contact = contact_instances[0] + contact_instances = gajim.get_contact_instances_from_jid(account, jid) + contact = gajim.get_highest_prio_contact_from_contacts(contact_instances) name = contact.name if len(contact_instances) > 1: name += ' (' + str(len(contact_instances)) + ')' - prio = 0 # FIXME: add a comment explain what you do here - for c in contact_instances: - if c.priority > prio: - prio = c.priority - contact = c - state_images = self.get_appropriate_state_images(jid) if gajim.awaiting_messages[account].has_key(jid): img = state_images['message']