plugin XEP-0060: use new findServiceEntity to get default pubsub service
This commit is contained in:
parent
30768ce305
commit
7de0ba6c64
1 changed files with 1 additions and 6 deletions
|
|
@ -113,12 +113,7 @@ class XEP_0060(object):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def profileConnected(self, client):
|
||||
pubsub_services = yield self.host.findServiceEntities(client, "pubsub", "service")
|
||||
if pubsub_services:
|
||||
# we use one of the found services as our default pubsub service
|
||||
client.pubsub_service = pubsub_services.pop()
|
||||
else:
|
||||
client.pubsub_service = None
|
||||
client.pubsub_service = yield self.host.findServiceEntity(client, "pubsub", "service")
|
||||
|
||||
def getFeatures(self, profile):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue