Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove warnings from the docs about using message retention. (#16382)
Browse files Browse the repository at this point in the history
There are no known bugs in the message retention code, but
it is possible that there still exists race conditions. Additional
fixes will be made as reported.
  • Loading branch information
clokep authored Sep 28, 2023
1 parent cdb89dc commit fb664cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.d/16382.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update documentation around message retention policies.
3 changes: 1 addition & 2 deletions docs/message_retention_policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ and allow server and room admins to configure how long messages should
be kept in a homeserver's database before being purged from it.
**Please note that, as this feature isn't part of the Matrix
specification yet, this implementation is to be considered as
experimental. There are known bugs which may cause database corruption.
Proceed with caution.**
experimental.**

A message retention policy is mainly defined by its `max_lifetime`
parameter, which defines how long a message can be kept around after
Expand Down
7 changes: 2 additions & 5 deletions docs/usage/configuration/config_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -1026,11 +1026,8 @@ which are older than the room's maximum retention period. Synapse will also
filter events received over federation so that events that should have been
purged are ignored and not stored again.

The message retention policies feature is disabled by default. Please be advised
that enabling this feature carries some risk. There are known bugs with the implementation
which can cause database corruption. Setting retention to delete older history
is less risky than deleting newer history but in general caution is advised when enabling this
experimental feature. You can read more about this feature [here](../../message_retention_policies.md).
The message retention policies feature is disabled by default. You can read more
about this feature [here](../../message_retention_policies.md).

This setting has the following sub-options:
* `default_policy`: Default retention policy. If set, Synapse will apply it to rooms that lack the
Expand Down

0 comments on commit fb664cf

Please sign in to comment.