Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Link Mauve
python-nbxmpp
Commits
852b29d8
Commit
852b29d8
authored
Apr 11, 2020
by
Philipp Hörist
Browse files
MAM: Check for first and last element in IQ result
parent
d8b35aca
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/modules/mam.py
View file @
852b29d8
...
...
@@ -119,6 +119,12 @@ class MAM(BaseModule):
'rsm set missing'
)
complete
=
fin
.
getAttr
(
'complete'
)
==
'true'
if
not
complete
:
if
rsm
.
first
is
None
or
rsm
.
last
is
None
:
return
raise_error
(
self
.
_log
.
warning
,
stanza
,
'stanza-malformed'
,
'missing first or last element'
)
return
MAMQueryData
(
jid
=
jid
,
complete
=
complete
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment