Skip to content
Snippets Groups Projects
Commit d3590b19 authored by nkour's avatar nkour
Browse files

new message works

parent 036c4761
No related branches found
No related tags found
No related merge requests found
......@@ -583,12 +583,12 @@ class new_message_window: #FIXME: NOT READY
jid = userid
# use User class, new_chat expects it that way
user = gtkgui.User((jid, jid, ['not in the roster'], \
'not in the roster', 'not in the roster', 'none', None, '', 0, ''))
self.plugin.contacts[self.account][jid] = [user]
user = gtkgui.User(jid, jid, ['not in the roster'], \
'not in the roster', 'not in the roster', 'none', None, '', 0, '')
self.plugin.roster.contacts[self.account][jid] = [user]
#FIXME: don't add him if we already have him (see on_message code on gtkgui.py)
self.plugin.roster.add_user_to_roster(user.jid, self.account)
self.plugin.roster.new_chat(user.jid, self.account)
self.plugin.roster.new_chat(user, self.account)
widget.get_toplevel().destroy()
def __init__(self, plugin, account):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment