Mercurial > libervia-backend
changeset 957:2eb4fef29795
plulgin XEP-0115: fixed caps_optimize init
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 31 Mar 2014 16:57:02 +0200 |
parents | 132de9d487ac |
children | 9393dc29aaf3 |
files | src/plugins/plugin_xep_0115.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0115.py Mon Mar 31 16:08:15 2014 +0200 +++ b/src/plugins/plugin_xep_0115.py Mon Mar 31 16:57:02 2014 +0200 @@ -61,10 +61,12 @@ return XEP_0115_handler(self, profile) def _checkHash(self, disco_d, profile): + client = self.host.getClient(profile) + client.caps_optimize = None + if XEP_0115.cap_hash is None: disco_d.addCallback(lambda dummy: self.host.hasFeature(NS_CAPS_OPTIMIZE, profile_key=profile)) def updateOptimize(optimize): - client = self.host.getClient(profile) client.caps_optimize = optimize if optimize: info(_("Caps optimisation enabled"))