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

This commit is contained in:
Yann Leboulanger 2005-12-30 12:19:49 +00:00
parent dab85845de
commit 96419ac1d8
1 changed files with 2 additions and 1 deletions

View File

@ -1186,7 +1186,8 @@ current room topic.') % command, room_jid)
fjid = gajim.construct_fjid(room_jid, nick) # 'fake' jid fjid = gajim.construct_fjid(room_jid, nick) # 'fake' jid
if not gajim.interface.instances[self.account]['chats'].has_key(fjid): if not gajim.interface.instances[self.account]['chats'].has_key(fjid):
gc_c = gajim.contacts.get_gc_contact(self.account, room_jid, nick) 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 #make active here in case we need to send a message
gajim.interface.instances[self.account]['chats'][fjid].set_active_tab(fjid) gajim.interface.instances[self.account]['chats'][fjid].set_active_tab(fjid)