Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlovetox <philipp@hoerist.com>2020-03-28 14:17:12 +0300
committerlovetox <philipp@hoerist.com>2020-03-28 20:06:51 +0300
commit038bb40850b09b4488fa032b8eee8647acab4255 (patch)
treef9b099ed17abf46b3a57cce28464334394513653
parent78da85211708d6c1c87e7d2333f31077e68dff3b (diff)
MAM: Make queryid argument optional
-rw-r--r--nbxmpp/modules/mam.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nbxmpp/modules/mam.py b/nbxmpp/modules/mam.py
index 4de2efa..3092991 100644
--- a/nbxmpp/modules/mam.py
+++ b/nbxmpp/modules/mam.py
@@ -44,7 +44,7 @@ class MAM(BaseModule):
@call_on_response('_query_result')
def make_query(self,
jid,
- queryid,
+ queryid=None,
start=None,
end=None,
with_=None,
@@ -52,7 +52,8 @@ class MAM(BaseModule):
max_=70):
iq = Iq(typ='set', to=jid, queryNS=NS_MAM_2)
- iq.getQuery().setAttr('queryid', queryid)
+ if queryid is not None:
+ iq.getQuery().setAttr('queryid', queryid)
payload = [
self._make_query_form(start, end, with_),