Commit 25e31bd5 authored by Philipp Hörist's avatar Philipp Hörist

StartChat: Use JID arg for start-chat action

parent 58cfd1e4
......@@ -267,9 +267,7 @@ class GajimApplication(Gtk.Application):
if len(accounts) == 1:
app.interface.new_chat_from_jid(accounts[0], jid, message)
else:
self.activate_action('start-chat', GLib.Variant('s', ''))
start_chat = app.get_app_window('StartChatDialog')
start_chat.set_search_text(jid)
self.activate_action('start-chat', GLib.Variant('s', jid))
def do_shutdown(self, *args):
Gtk.Application.do_shutdown(self)
......
......@@ -221,7 +221,7 @@ class GajimRemote(Server):
<method name='show_next_pending_event' />
<method name='show_roster' />
<method name='start_chat'>
<arg name='account' type='s' />
<arg name='jid' type='s' />
<arg direction='out' type='b' />
</method>
<method name='toggle_ipython' />
......@@ -884,11 +884,8 @@ class GajimRemote(Server):
unread -= 1
return str(unread)
def start_chat(self, account):
if not account:
# error is shown in gajim-remote check_arguments(..)
return False
app.app.activate_action('start-chat', GLib.Variant('s', ''))
def start_chat(self, jid=''):
app.app.activate_action('start-chat', GLib.Variant('s', jid))
return True
def send_xml(self, xml, account):
......
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