Commit d37f6e84 authored by Philipp Hörist's avatar Philipp Hörist

PubSub: Discover publish options correctly

parent 69b4ae18
......@@ -44,8 +44,9 @@ def __init__(self, con):
self.publish_options = False
def pass_disco(self, info):
self._log.info('Discovered Pubsub publish options: %s', info.jid)
self.publish_options = True
if Namespace.PUBSUB_PUBLISH_OPTIONS in info.features:
self._log.info('Discovered Pubsub publish options: %s', info.jid)
self.publish_options = True
def send_pb_subscription_query(self, jid, cb, **kwargs):
if not app.account_is_available(self._account):
......
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