Commit 1456566f authored by mathieui's avatar mathieui

fix: race condition in history load

parent e159fad5
Pipeline #3981 passed with stages
in 6 minutes and 32 seconds
......@@ -1025,12 +1025,14 @@ class OneToOneTab(ChatTab):
mam_sync = config.get_by_tabname('mam_sync', self.jid)
if use_log and mam_sync:
limit = config.get_by_tabname('mam_sync_limit', self.jid)
self.mam_filler = MAMFiller(logger, self, limit)
mam_filler = MAMFiller(logger, self, limit)
self.mam_filler = mam_filler
async def fallback_no_mam():
await self.mam_filler.done.wait()
if self.mam_filler.result == 0:
await mam_filler.done.wait()
if mam_filler.result == 0:
elif use_log and initial:
self.handle_message(initial, display=False)
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