From 0302499ccd51328cd083431473f36cbe3bb6e8c1 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov <dkirov@gmail.com> Date: Mon, 25 Sep 2006 10:24:39 +0000 Subject: [PATCH] get contact if it is in not_in_the_roster --- src/gajim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index c521f90956..7ec3d75a05 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -1742,7 +1742,7 @@ class Interface: w = self.msg_win_mgr.get_window(jid, account) else: contact = gajim.contacts.get_contact(account, jid, resource) - if isinstance(contact, list): + if not contact or isinstance(contact, list): contact = gajim.contacts.get_first_contact_from_jid(account, jid) self.roster.new_chat(contact, account) w = self.msg_win_mgr.get_window(fjid, account) -- GitLab