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 b3145295..29efc8ff 100644 --- a/poezio/mam.py +++ b/poezio/mam.py @@ -70,7 +70,8 @@ async def query(self, remote_jid, start, end, top): async for rsm in results: if top: for msg in rsm['mam']['results']: - msgs.append(msg) + if msg['mam_result']['forwarded']['stanza']['body'] is not '': + msgs.append(msg) if msg_count == 10: self.query_id = 0 timestamp = datetime.now() |