get contact if it is in not_in_the_roster

This commit is contained in:
Dimitur Kirov 2006-09-25 10:24:39 +00:00
parent 31c467c305
commit 0302499ccd
1 changed files with 1 additions and 1 deletions

View File

@ -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)