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']:
if msg['mam_result']['forwarded']['stanza']['body'] is not '':
if msg_count == 10:
self.query_id = 0
timestamp =
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