From 4f6c6d3d143112ffff7828589ef03fad38208ed4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 27 Mar 2006 08:50:06 +0000 Subject: [PATCH] handle correctly offline message (don't take into account the resource) --- src/gajim.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 2855f741e..66caa9a1c 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -513,7 +513,11 @@ class Interface: ctrl = self.msg_win_mgr.get_control(fjid, account) if ctrl: chat_control = ctrl - elif not highest_contact or resource != highest_contact.resource: + elif not highest_contact or not highest_contact.resource: + # unknow contact or offline message + chat_control = None + jid_of_control = jid + elif resource != highest_contact.resource: chat_control = None jid_of_control = fjid # Handle chat states