Skip to content
Snippets Groups Projects
Commit 2ca80f99 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Profile: Don’t check for server features

We just assume pubsub will be always there
parent 1ff4eed0
No related branches found
No related tags found
No related merge requests found
...@@ -458,7 +458,7 @@ def _get_account_actions(account): ...@@ -458,7 +458,7 @@ def _get_account_actions(account):
('-start-chat', a.start_chat, 'online', 'as'), ('-start-chat', a.start_chat, 'online', 'as'),
('-add-contact', a.on_add_contact, 'online', 'as'), ('-add-contact', a.on_add_contact, 'online', 'as'),
('-services', a.on_service_disco, 'online', 's'), ('-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'), ('-server-info', a.on_server_info, 'online', 's'),
('-archive', a.on_mam_preferences, 'feature', 's'), ('-archive', a.on_mam_preferences, 'feature', 's'),
('-pep-config', a.on_pep_config, 'online', 's'), ('-pep-config', a.on_pep_config, 'online', 's'),
...@@ -554,10 +554,7 @@ def _set_shortcuts(self): ...@@ -554,10 +554,7 @@ def _set_shortcuts(self):
self.set_accels_for_action(action, accels) self.set_accels_for_action(action, accels)
def _on_feature_discovered(self, event): def _on_feature_discovered(self, event):
if event.feature == Namespace.PUBSUB: if event.feature == Namespace.MAM_2:
action = '%s-profile' % event.account
self.lookup_action(action).set_enabled(True)
elif event.feature == Namespace.MAM_2:
action = '%s-archive' % event.account action = '%s-archive' % event.account
self.lookup_action(action).set_enabled(True) self.lookup_action(action).set_enabled(True)
elif event.feature == Namespace.BLOCKING: elif event.feature == Namespace.BLOCKING:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment