Commit d6ccafbc authored by Madhur Garg's avatar Madhur Garg

Added a check on empty messages and not displaying them in MAM query

parent 836e53bd
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment