Author: asterix Date: 2006-10-15 23:51:34 +0200 (Sun, 15 Oct 2006) New Revision: 7256
Modified: trunk/src/gajim.py Log: handle correctly messages from offline resources
Modified: trunk/src/gajim.py =================================================================== --- trunk/src/gajim.py 2006-10-15 21:47:35 UTC (rev 7255) +++ trunk/src/gajim.py 2006-10-15 21:51:34 UTC (rev 7256) @@ -1759,7 +1759,10 @@ else: highest_contact = gajim.contacts.get_contact_with_highest_priority( account, jid) - if resource and highest_contact.resource == resource: + # jid can have a window if this resource was lower when he sent + # message and is now higher because the other one is offline + if resource and highest_contact.resource == resource and \ + not self.msg_win_mgr.has_window(jid, account): resource = None fjid = jid contact = gajim.contacts.get_contact(account, jid, resource)