diff options
-rw-r--r-- | poezio/mam.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/poezio/mam.py b/poezio/mam.py index 163e6439..b5ef7206 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -84,7 +84,8 @@ async def query(self, remote_jid, start, end, top): async for rsm in results: if top: for msg in rsm['mam']['results']: - if msg['mam_result']['forwarded']['stanza']['body'] is not '': + if msg['mam_result']['forwarded']['stanza'].xml.find( + '{%s}%s' % ('jabber:client', 'body')) is not None: msgs.append(msg) if msg_count == 10: self.query_id = 0 |