Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0115.py @ 1552:e0bde0d0b321
core (disco): use of “profile” instead of “profile_key” in several disco methods
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Nov 2015 22:02:41 +0100 |
parents | 3265a2639182 |
children | d17772b0fe22 |
comparison
equal
deleted
inserted
replaced
1551:591c32dbfb0b | 1552:e0bde0d0b321 |
---|---|
64 def _checkHash(self, disco_d, profile): | 64 def _checkHash(self, disco_d, profile): |
65 client = self.host.getClient(profile) | 65 client = self.host.getClient(profile) |
66 client.caps_optimize = None | 66 client.caps_optimize = None |
67 | 67 |
68 if XEP_0115.cap_hash is None: | 68 if XEP_0115.cap_hash is None: |
69 disco_d.addCallback(lambda dummy: self.host.hasFeature(NS_CAPS_OPTIMIZE, profile_key=profile)) | 69 disco_d.addCallback(lambda dummy: self.host.hasFeature(NS_CAPS_OPTIMIZE, profile=profile)) |
70 def updateOptimize(optimize): | 70 def updateOptimize(optimize): |
71 client.caps_optimize = optimize | 71 client.caps_optimize = optimize |
72 if optimize: | 72 if optimize: |
73 log.info(_("Caps optimisation enabled")) | 73 log.info(_("Caps optimisation enabled")) |
74 client.caps_sent = False | 74 client.caps_sent = False |