Philipp Hörist pushed to branch master at gajim / python-nbxmpp

Commits:

1 changed file:

Changes:

  • nbxmpp/modules/mam.py
    ... ... @@ -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,