diff options
author | Maxime Buquet <pep@bouah.net> | 2022-07-16 19:02:06 +0200 |
---|---|---|
committer | Maxime Buquet <pep@bouah.net> | 2022-07-16 19:02:06 +0200 |
commit | 1f47acaec13f30832fcfb56fc45843e90ad27673 (patch) | |
tree | c5ee863160129745d05e5c16fa90b38ba375c754 | |
parent | 5998069203fc1690e702b1267bcf694859e783f7 (diff) | |
parent | 8eb8769862176858e0b7c7e97fdd1409d539b53e (diff) | |
download | slixmpp-1f47acaec13f30832fcfb56fc45843e90ad27673.tar.gz slixmpp-1f47acaec13f30832fcfb56fc45843e90ad27673.tar.bz2 slixmpp-1f47acaec13f30832fcfb56fc45843e90ad27673.tar.xz slixmpp-1f47acaec13f30832fcfb56fc45843e90ad27673.zip |
Merge branch 'fix-xep_0115-static' into 'master'
XEP-0115: Make get_caps() async
See merge request poezio/slixmpp!203
-rw-r--r-- | slixmpp/plugins/xep_0115/static.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0115/static.py b/slixmpp/plugins/xep_0115/static.py index 74f2beb8..4bf77d75 100644 --- a/slixmpp/plugins/xep_0115/static.py +++ b/slixmpp/plugins/xep_0115/static.py @@ -60,7 +60,7 @@ class StaticCaps(object): return False if node in (None, ''): - info = self.caps.get_caps(jid) + info = await self.caps.get_caps(jid) if info and feature in info['features']: return True @@ -134,7 +134,7 @@ class StaticCaps(object): def get_verstring(self, jid, node, ifrom, data): return self.jid_vers.get(jid, None) - def get_caps(self, jid, node, ifrom, data): + async def get_caps(self, jid, node, ifrom, data): verstring = data.get('verstring', None) if verstring is None: return None |