Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2021-02-15 18:23:19 +0300
committerlovetox <philipp@hoerist.com>2021-02-27 14:54:10 +0300
commit2ca80f999d11ef012284cb9b227d652c97fb5acf (patch)
tree3c09b9e5ed33b2e49825dbb05cb0470736b506ff
parent1ff4eed0698e7bfc88596d7e24f4c311365ec4d6 (diff)
Profile: Don’t check for server features
We just assume pubsub will be always there
-rw-r--r--gajim/application.py7
1 files 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: