From b3d405b616ae51f56911546a17b476884a1ec5ee Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 15 Oct 2006 21:51:34 +0000 Subject: [PATCH] handle correctly messages from offline resources --- src/gajim.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 13d3ea261..f2220e967 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1759,7 +1759,10 @@ class Interface: 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)