From c25e37566e587b7cf061c52a38f5742b2f777365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Wed, 12 Dec 2018 23:35:36 +0100 Subject: [PATCH] Fix start chat menu action Fixes #8275 --- gajim/gui_menu_builder.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gajim/gui_menu_builder.py b/gajim/gui_menu_builder.py index 030a7b5f8..4f47be865 100644 --- a/gajim/gui_menu_builder.py +++ b/gajim/gui_menu_builder.py @@ -905,19 +905,13 @@ def get_conv_context_menu(account, kind, text): menuitem.set_label(label) if action.startswith('-'): + text = text.replace('xmpp:', '') + text = text.split('?')[0] action = 'app.%s%s' % (account, action) else: action = 'app.%s' % 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': value = GLib.Variant.new_strv([kind, text]) elif action == 'app.copy-link':