Commit 26505c32 authored by mathieui's avatar mathieui

fix: do not silently traceback on mucs without mam

in mucs, there is no "initial message"
parent 3698b20a
Pipeline #3989 passed with stages
in 5 minutes and 53 seconds
......@@ -1028,12 +1028,15 @@ class OneToOneTab(ChatTab):
mam_filler = MAMFiller(logger, self, limit)
self.mam_filler = mam_filler
async def fallback_no_mam():
await mam_filler.done.wait()
if mam_filler.result == 0:
self.handle_message(initial)
asyncio.ensure_future(fallback_no_mam())
if initial is not None:
# If there is an initial message, throw it back into the
# text buffer if it cannot be fetched from mam
async def fallback_no_mam():
await mam_filler.done.wait()
if mam_filler.result == 0:
self.handle_message(initial)
asyncio.ensure_future(fallback_no_mam())
elif use_log and initial:
self.handle_message(initial, display=False)
asyncio.ensure_future(
......
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