Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
852b29d8
by lovetox at 2020-04-11T16:08:56+02:00
1 changed file:
Changes:
| ... | ... | @@ -119,6 +119,12 @@ class MAM(BaseModule): |
| 119 | 119 |
'rsm set missing')
|
| 120 | 120 |
|
| 121 | 121 |
complete = fin.getAttr('complete') == 'true'
|
| 122 |
+ if not complete:
|
|
| 123 |
+ if rsm.first is None or rsm.last is None:
|
|
| 124 |
+ return raise_error(self._log.warning,
|
|
| 125 |
+ stanza,
|
|
| 126 |
+ 'stanza-malformed',
|
|
| 127 |
+ 'missing first or last element')
|
|
| 122 | 128 |
|
| 123 | 129 |
return MAMQueryData(jid=jid,
|
| 124 | 130 |
complete=complete,
|