Commit 96419ac1 authored by Yann Leboulanger's avatar Yann Leboulanger

always create TC tab with a contact instance, not a gc_contact instance

parent dab85845
......@@ -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
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