Handle ?message uris
This commit is contained in:
parent
1afd4f0e72
commit
38944331b3
1 changed files with 11 additions and 0 deletions
|
@ -244,6 +244,17 @@ class GajimApplication(Gtk.Application):
|
||||||
self.interface.join_gc_minimal(None, jid)
|
self.interface.join_gc_minimal(None, jid)
|
||||||
elif cmd == 'roster':
|
elif cmd == 'roster':
|
||||||
self.activate_action('add-contact', GLib.Variant('s', jid))
|
self.activate_action('add-contact', GLib.Variant('s', jid))
|
||||||
|
elif cmd == 'message':
|
||||||
|
from gajim.common import app
|
||||||
|
accounts = list(app.connections.keys())
|
||||||
|
if not accounts:
|
||||||
|
continue
|
||||||
|
if len(accounts) == 1:
|
||||||
|
app.interface.new_chat_from_jid(accounts[0], jid)
|
||||||
|
else:
|
||||||
|
self.activate_action('start-chat')
|
||||||
|
start_chat_window = app.interface.instances['start_chat']
|
||||||
|
start_chat_window.search_entry.set_text(jid)
|
||||||
|
|
||||||
def do_shutdown(self, *args):
|
def do_shutdown(self, *args):
|
||||||
Gtk.Application.do_shutdown(self)
|
Gtk.Application.do_shutdown(self)
|
||||||
|
|
Loading…
Add table
Reference in a new issue