comparison src/plugins/plugin_xep_0329.py @ 2533:8d82a62fa098

core (disco), plugin XEP-0115: client use + capabilities hash improvment: - modified a couple of method from memory to use client instead of profile - XEP-0115: don't use unique hash for all clients anymore, as disco can be different between clients/components, and even between clients (different identity for instance). hash is now generated per client on each new session.
author Goffi <goffi@goffi.org>
date Sat, 24 Mar 2018 10:44:37 +0100
parents 65e278997715
children
comparison
equal deleted inserted replaced
2532:772447ec070f 2533:8d82a62fa098
202 self._h = host.plugins['XEP-0300'] 202 self._h = host.plugins['XEP-0300']
203 self._jf = host.plugins['XEP-0234'] 203 self._jf = host.plugins['XEP-0234']
204 host.bridge.addMethod("FISList", ".plugin", in_sign='ssa{ss}s', out_sign='aa{ss}', method=self._listFiles, async=True) 204 host.bridge.addMethod("FISList", ".plugin", in_sign='ssa{ss}s', out_sign='aa{ss}', method=self._listFiles, async=True)
205 host.bridge.addMethod("FISSharePath", ".plugin", in_sign='ssss', out_sign='s', method=self._sharePath) 205 host.bridge.addMethod("FISSharePath", ".plugin", in_sign='ssss', out_sign='s', method=self._sharePath)
206 host.trigger.add("XEP-0234_fileSendingRequest", self._fileSendingRequestTrigger) 206 host.trigger.add("XEP-0234_fileSendingRequest", self._fileSendingRequestTrigger)
207 host.registerNamespace('fis', NS_FIS)
207 208
208 def getHandler(self, client): 209 def getHandler(self, client):
209 return XEP_0329_handler(self) 210 return XEP_0329_handler(self)
210 211
211 def profileConnected(self, client): 212 def profileConnected(self, client):