don't open chat window with full jid (#2443)

This commit is contained in:
Dimitur Kirov 2006-09-22 15:16:05 +00:00
parent 2ebd0af9de
commit 6f768f2bb7
1 changed files with 3 additions and 1 deletions

View File

@ -1735,11 +1735,13 @@ class Interface:
elif type_ in ('printed_chat', 'chat'):
if self.msg_win_mgr.has_window(fjid, account):
w = self.msg_win_mgr.get_window(fjid, account)
elif self.msg_win_mgr.has_window(jid, account):
w = self.msg_win_mgr.get_window(jid, account)
else:
contact = gajim.contacts.get_contact(account, jid, resource)
if isinstance(contact, list):
contact = gajim.contacts.get_first_contact_from_jid(account, jid)
self.roster.new_chat(contact, account, resource = resource)
self.roster.new_chat(contact, account)
w = self.msg_win_mgr.get_window(fjid, account)
gajim.last_message_time[account][jid] = 0 # long time ago
elif type_ in ('printed_pm', 'pm'):