diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2022-05-23 19:18:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 17:18:23 +0000 |
commit | 4cc4229cd7a55d2556c798fecbb1c9660dc821c8 (patch) | |
tree | bdcd296a05ae4fa0a147ccfe1e545e16f48ecd49 /synapse/types.py | |
parent | add SpamChecker callback for silently dropping inbound federated events (#12744) (diff) | |
download | synapse-4cc4229cd7a55d2556c798fecbb1c9660dc821c8.tar.xz |
Prevent expired events from being filtered out when retention is disabled (#12611)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'synapse/types.py')
-rw-r--r-- | synapse/types.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/types.py b/synapse/types.py index bd8071d51d..6f7128ddd6 100644 --- a/synapse/types.py +++ b/synapse/types.py @@ -932,3 +932,9 @@ class UserProfile(TypedDict): user_id: str display_name: Optional[str] avatar_url: Optional[str] + + +@attr.s(auto_attribs=True, frozen=True, slots=True) +class RetentionPolicy: + min_lifetime: Optional[int] = None + max_lifetime: Optional[int] = None |