Mercurial > libervia-backend
diff src/plugins/plugin_xep_0115.py @ 2148:a543eda2c923
core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 12 Feb 2017 20:43:20 +0100 |
parents | 33c8c4973743 |
children | 8b37a62336c3 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0115.py Sun Feb 12 19:23:34 2017 +0100 +++ b/src/plugins/plugin_xep_0115.py Sun Feb 12 20:43:20 2017 +0100 @@ -66,7 +66,7 @@ client.caps_optimize = None if XEP_0115.cap_hash is None: - disco_d.addCallback(lambda dummy: self.host.hasFeature(NS_CAPS_OPTIMIZE, profile=profile)) + disco_d.addCallback(lambda dummy: self.host.hasFeature(client, NS_CAPS_OPTIMIZE)) def updateOptimize(optimize): client.caps_optimize = optimize if optimize: @@ -163,6 +163,6 @@ msg = failure.value.condition if hasattr(failure.value, 'condition') else failure.getErrorMessage() log.error(_(u"Couldn't retrieve disco info for {jid}: {error}").format(jid=from_jid.full(), error=msg)) - d = self.host.getDiscoInfos(from_jid, self.profile) + d = self.host.getDiscoInfos(self.parent, from_jid) d.addCallbacks(cb, eb) # TODO: me must manage the full algorithm described at XEP-0115 #5.4 part 3