Commit 6f768f2b authored by dkirov's avatar dkirov
Browse files

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

parent 2ebd0af9
......@@ -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)
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'):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment