From 6f768f2bb7db722f45e5f3a9e1ec0ec69746b307 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Fri, 22 Sep 2006 15:16:05 +0000 Subject: [PATCH] don't open chat window with full jid (#2443) --- src/gajim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index a8d35ee6a..b38e2eba6 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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'):