Mercurial > libervia-backend
diff src/plugins/plugin_xep_0300.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_0300.py Sun Feb 12 19:23:34 2017 +0100 +++ b/src/plugins/plugin_xep_0300.py Sun Feb 12 20:43:20 2017 +0100 @@ -83,8 +83,9 @@ @return (D(unicode, None)): best available algorithm, or None if hashing is not possible """ + client = self.host.getClient(profile) for algo in reversed(XEP_0300.ALGOS): - has_feature = yield self.host.hasFeature(NS_HASHES_FUNCTIONS.format(algo), to_jid, profile) + has_feature = yield self.host.hasFeature(client, NS_HASHES_FUNCTIONS.format(algo), to_jid) if has_feature: log.debug(u"Best hashing algorithm found for {jid}: {algo}".format( jid=to_jid.full(),