roster now shows the correct state image

This commit is contained in:
Yann Leboulanger 2005-08-10 17:26:43 +00:00
parent d220cde8cd
commit 9f0b1e50cd
1 changed files with 2 additions and 9 deletions

View File

@ -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']