parent
efcb6235e2
commit
c25e37566e
|
@ -905,19 +905,13 @@ def get_conv_context_menu(account, kind, text):
|
||||||
menuitem.set_label(label)
|
menuitem.set_label(label)
|
||||||
|
|
||||||
if action.startswith('-'):
|
if action.startswith('-'):
|
||||||
|
text = text.replace('xmpp:', '')
|
||||||
|
text = text.split('?')[0]
|
||||||
action = 'app.%s%s' % (account, action)
|
action = 'app.%s%s' % (account, action)
|
||||||
else:
|
else:
|
||||||
action = 'app.%s' % action
|
action = 'app.%s' % action
|
||||||
menuitem.set_action_name(action)
|
menuitem.set_action_name(action)
|
||||||
|
|
||||||
if 'join-groupchat' in action:
|
|
||||||
text = text.replace('xmpp:', '')
|
|
||||||
text = text.split('?')[0]
|
|
||||||
|
|
||||||
if 'add-contact' in action:
|
|
||||||
text = text.replace('xmpp:', '')
|
|
||||||
text = text.split('?')[0]
|
|
||||||
|
|
||||||
if action == 'app.open-link':
|
if action == 'app.open-link':
|
||||||
value = GLib.Variant.new_strv([kind, text])
|
value = GLib.Variant.new_strv([kind, text])
|
||||||
elif action == 'app.copy-link':
|
elif action == 'app.copy-link':
|
||||||
|
|
Loading…
Reference in New Issue