diff options
author | mathieui <mathieui@mathieui.net> | 2021-04-11 14:29:28 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-04-11 16:37:49 +0200 |
commit | 29a7c6eca555402e6c7aacbf5f523ce4f3f4a5c4 (patch) | |
tree | a93cde7737b65fea046986a0ae113f6856fa7f21 | |
parent | 6b2c12c16c74af6bef268d329bc70e520e8dcfbd (diff) | |
download | poezio-29a7c6eca555402e6c7aacbf5f523ce4f3f4a5c4.tar.gz poezio-29a7c6eca555402e6c7aacbf5f523ce4f3f4a5c4.tar.bz2 poezio-29a7c6eca555402e6c7aacbf5f523ce4f3f4a5c4.tar.xz poezio-29a7c6eca555402e6c7aacbf5f523ce4f3f4a5c4.zip |
doc: explain module behavior
-rw-r--r-- | poezio/log_loader.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/poezio/log_loader.py b/poezio/log_loader.py index edfaf90b..1e1d80b9 100644 --- a/poezio/log_loader.py +++ b/poezio/log_loader.py @@ -2,6 +2,18 @@ This modules contains a class that loads messages into a ChatTab, either from MAM or the local logs, and a class that loads MUC history into the local logs. + + +How the log loading works will depend on the poezio configuration: + +- if use_log is True, no logs will be fetched dynamically +- if use_log is False, all logs will be fetched from MAM (if available) +- if mam_sync and use_log are True, most chat tabs (all of them except the + static conversation tab) will try to sync the local + logs with the MAM history when opening them, or when joining a room. +- all log loading/writing workflows are paused until the MAM sync is complete + (so that the local log loading can be up-to-date with the MAM history) +- when use_log is False, mam_sync has no effect """ from __future__ import annotations import asyncio |