summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-10-01 13:52:28 +0200
committerMaxime Buquet <pep@bouah.net>2020-10-01 13:52:28 +0200
commit0b38eeaa4a946af1c7b19ff57ae558c5a7b3dfce (patch)
tree0f18efe7746ea44b08b28548538fe555a9e8e9da
parent4dbabfa211227dc4058b7acb086c06a0330b9c6d (diff)
parent9c7f3d59d8b35f3aab2a4ab514818bcff41ca44b (diff)
downloadslixmpp-0b38eeaa4a946af1c7b19ff57ae558c5a7b3dfce.tar.gz
slixmpp-0b38eeaa4a946af1c7b19ff57ae558c5a7b3dfce.tar.bz2
slixmpp-0b38eeaa4a946af1c7b19ff57ae558c5a7b3dfce.tar.xz
slixmpp-0b38eeaa4a946af1c7b19ff57ae558c5a7b3dfce.zip
Merge branch 'xep-0363-callback-fix' into 'master'
XEP-0363 fix: call callback when receiving the upload slot. See merge request poezio/slixmpp!58
-rw-r--r--slixmpp/plugins/xep_0363/http_upload.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slixmpp/plugins/xep_0363/http_upload.py b/slixmpp/plugins/xep_0363/http_upload.py
index a833a9c9..04b066cd 100644
--- a/slixmpp/plugins/xep_0363/http_upload.py
+++ b/slixmpp/plugins/xep_0363/http_upload.py
@@ -138,6 +138,7 @@ class XEP_0363(BasePlugin):
basename = os.path.basename(filename)
slot_iq = await self.request_slot(self.upload_service, basename, size,
content_type, ifrom, timeout,
+ callback=callback,
timeout_callback=timeout_callback)
slot = slot_iq['http_upload_slot']