From 96419ac1d8f1d0c9e12d0d846e22d383b5aa3c59 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 30 Dec 2005 12:19:49 +0000 Subject: [PATCH] always create TC tab with a contact instance, not a gc_contact instance --- src/groupchat_window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index a7b463943..b441180ed 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -1186,7 +1186,8 @@ current room topic.') % command, room_jid) fjid = gajim.construct_fjid(room_jid, nick) # 'fake' jid if not gajim.interface.instances[self.account]['chats'].has_key(fjid): gc_c = gajim.contacts.get_gc_contact(self.account, room_jid, nick) - gajim.interface.roster.new_chat(gc_c, self.account) + c = gajim.contacts.contact_from_gc_contact(gc_c) + gajim.interface.roster.new_chat(c, self.account) #make active here in case we need to send a message gajim.interface.instances[self.account]['chats'][fjid].set_active_tab(fjid)