use the new new_private_chat function

This commit is contained in:
Yann Leboulanger 2007-06-03 13:45:32 +00:00
parent 75eb345ff9
commit 274f8742bb
1 changed files with 1 additions and 2 deletions

View File

@ -2170,8 +2170,7 @@ class Interface:
show = 'offline'
gc_contact = gajim.contacts.create_gc_contact(
room_jid = room_jid, name = nick, show = show)
c = gajim.contacts.contact_from_gc_contact(gc_contact)
self.roster.new_chat(c, account, private_chat = True)
self.roster.new_private_chat(gc_contact, account)
w = self.msg_win_mgr.get_window(fjid, account)
elif type_ in ('normal', 'file-request', 'file-request-error',
'file-send-error', 'file-error', 'file-stopped', 'file-completed'):