summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-04-11 13:15:07 +0200
committermathieui <mathieui@mathieui.net>2021-04-11 16:33:53 +0200
commit6f36d6b507044bdf8376ae1159ab0c86a3cd337a (patch)
tree0e27eb56d963dfa9ad45f142cd8847f3495601d5
parent6d7921da55dd12dba63f6a4473893796ee61a2de (diff)
downloadpoezio-6f36d6b507044bdf8376ae1159ab0c86a3cd337a.tar.gz
poezio-6f36d6b507044bdf8376ae1159ab0c86a3cd337a.tar.bz2
poezio-6f36d6b507044bdf8376ae1159ab0c86a3cd337a.tar.xz
poezio-6f36d6b507044bdf8376ae1159ab0c86a3cd337a.zip
feature: add a mam_sync option
-rw-r--r--data/default_config.cfg3
-rw-r--r--doc/source/configuration.rst7
-rw-r--r--poezio/config.py1
3 files changed, 11 insertions, 0 deletions
diff --git a/data/default_config.cfg b/data/default_config.cfg
index 4405164f..9f284f07 100644
--- a/data/default_config.cfg
+++ b/data/default_config.cfg
@@ -249,6 +249,9 @@ use_bookmarks_method =
# in files.
#use_log = true
+# set to 'false' to not sync the local lgos with the MAM server history
+#mam_sync = true
+
# The number of lines to preload in a chat buffer when it opens
# (the lines are preloaded from the log files)
# 0 or a negative value disable that option
diff --git a/doc/source/configuration.rst b/doc/source/configuration.rst
index 8b364961..f8d04296 100644
--- a/doc/source/configuration.rst
+++ b/doc/source/configuration.rst
@@ -861,6 +861,13 @@ Options related to logging.
Set to ``false`` if you don’t want to write any message to the disk.
+ mam_sync
+
+ **Default value:** ``true``
+
+ If ``true``, will try to fill local logs with missing MAM history
+ when opening a tab or joining a room.
+
Plugins
~~~~~~~
diff --git a/poezio/config.py b/poezio/config.py
index 713eada7..e98a57c1 100644
--- a/poezio/config.py
+++ b/poezio/config.py
@@ -92,6 +92,7 @@ DEFAULT_CONFIG: ConfigDict = {
'lazy_resize': True,
'log_dir': '',
'log_errors': True,
+ 'mam_sync': True,
'max_lines_in_memory': 2048,
'max_messages_in_memory': 2048,
'max_nick_length': 25,