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

Profile: Check for PubSub instead of vcard-temp

parent 87427ae9
No related branches found
No related tags found
No related merge requests found
...@@ -554,7 +554,7 @@ def _set_shortcuts(self): ...@@ -554,7 +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.VCARD: if event.feature == Namespace.PUBSUB:
action = '%s-profile' % event.account action = '%s-profile' % event.account
self.lookup_action(action).set_enabled(True) self.lookup_action(action).set_enabled(True)
elif event.feature == Namespace.MAM_2: elif event.feature == Namespace.MAM_2:
......
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