Commit 2d53fc26 authored by Philipp Hörist's avatar Philipp Hörist

Profile: Don’t check for server features

We just assume pubsub will be always there
parent bb5d0b9b
Pipeline #7334 failed with stages
in 8 minutes and 5 seconds
......@@ -458,7 +458,7 @@ def _get_account_actions(account):
('-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 @@ def _set_shortcuts(self):
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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment