From 2ca80f999d11ef012284cb9b227d652c97fb5acf Mon Sep 17 00:00:00 2001 From: lovetox Date: Mon, 15 Feb 2021 16:23:19 +0100 Subject: =?UTF-8?q?Profile:=20Don=E2=80=99t=20check=20for=20server=20featu?= =?UTF-8?q?res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We just assume pubsub will be always there --- gajim/application.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gajim/application.py b/gajim/application.py index e17ae7110..4eb6b1b38 100644 --- a/gajim/application.py +++ b/gajim/application.py @@ -458,7 +458,7 @@ class GajimApplication(Gtk.Application): ('-start-chat', a.start_chat, 'online', 'as'), ('-add-contact', a.on_add_contact, 'online', 'as'), ('-services', a.on_service_disco, 'online', 's'), - ('-profile', a.on_profile, 'feature', 's'), + ('-profile', a.on_profile, 'online', 's'), ('-server-info', a.on_server_info, 'online', 's'), ('-archive', a.on_mam_preferences, 'feature', 's'), ('-pep-config', a.on_pep_config, 'online', 's'), @@ -554,10 +554,7 @@ class GajimApplication(Gtk.Application): self.set_accels_for_action(action, accels) def _on_feature_discovered(self, event): - if event.feature == Namespace.PUBSUB: - action = '%s-profile' % event.account - self.lookup_action(action).set_enabled(True) - elif event.feature == Namespace.MAM_2: + if event.feature == Namespace.MAM_2: action = '%s-archive' % event.account self.lookup_action(action).set_enabled(True) elif event.feature == Namespace.BLOCKING: -- cgit v1.2.3