From 13dad4a17e035fea25f4123d468bd160e9099327 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 8 Jan 2006 00:23:33 +0000 Subject: [PATCH] use real jid when we open a pm message if we know it --- src/groupchat_window.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 10fb8444a..a39ce46bc 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -1672,13 +1672,13 @@ current room topic.') % command, room_jid) else: # We want to send a private message room_jid = self.get_active_jid() nick = model[iter][C_NICK].decode('utf-8') - jid = gajim.construct_fjid(room_jid, nick) - if not gajim.interface.instances[self.account]['chats'].has_key(jid): - gc_c = gajim.contacts.get_gc_contact(self.account, room_jid, nick) - c = gajim.contacts.contact_from_gc_contact(gc_c) + gc_c = gajim.contacts.get_gc_contact(self.account, room_jid, nick) + c = gajim.contacts.contact_from_gc_contact(gc_c) + if not gajim.interface.instances[self.account]['chats'].has_key(c.jid): gajim.interface.roster.new_chat(c, self.account) - gajim.interface.instances[self.account]['chats'][jid].set_active_tab(jid) - gajim.interface.instances[self.account]['chats'][jid].window.present() + gajim.interface.instances[self.account]['chats'][c.jid].set_active_tab( + c.jid) + gajim.interface.instances[self.account]['chats'][c.jid].window.present() def on_list_treeview_row_expanded(self, widget, iter, path): '''When a row is expanded: change the icon of the arrow'''