summaryrefslogtreecommitdiff
path: root/poezio/log_loader.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/log_loader.py')
-rw-r--r--poezio/log_loader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/log_loader.py b/poezio/log_loader.py
index 8fd0ed82..aa645c30 100644
--- a/poezio/log_loader.py
+++ b/poezio/log_loader.py
@@ -309,6 +309,7 @@ class MAMFiller:
self.future = asyncio.ensure_future(self.fetch_routine())
self.done = asyncio.Event()
self.limit = limit
+ self.result = 0
def cancel(self) -> None:
"""Cancel the routine and signal the end."""
@@ -334,6 +335,7 @@ class MAMFiller:
'Fetched %s messages to fill local logs for %s',
len(messages), self.tab.jid,
)
+ self.result = len(messages)
except NoMAMSupportException:
log.debug('The entity %s does not support MAM', self.tab.jid)
return