mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 14:06:02 -04:00
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>
This commit is contained in:
parent
a608ac847b
commit
4cc4229cd7
7 changed files with 71 additions and 32 deletions
|
@ -239,7 +239,7 @@ class PaginationHandler:
|
|||
# defined in the server's configuration, we can safely assume that's the
|
||||
# case and use it for this room.
|
||||
max_lifetime = (
|
||||
retention_policy["max_lifetime"] or self._retention_default_max_lifetime
|
||||
retention_policy.max_lifetime or self._retention_default_max_lifetime
|
||||
)
|
||||
|
||||
# Cap the effective max_lifetime to be within the range allowed in the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue