From 954a13b3ed9564917eb076a16d763662275d4877 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Mon, 6 Dec 2021 16:39:36 +0000 Subject: [PATCH] Fix test --- synapse/storage/databases/main/room.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/room.py b/synapse/storage/databases/main/room.py index f2b51fa676..8157e3381e 100644 --- a/synapse/storage/databases/main/room.py +++ b/synapse/storage/databases/main/room.py @@ -686,7 +686,7 @@ class RoomWorkerStore(SQLBaseStore): # If the room retention feature is disabled, return a policy with no minimum nor # maximum, in order not to filter out events we should filter out when sending to # the client. - if not self.config.server.retention_enabled: + if not self.config.retention.retention_enabled: return {"min_lifetime": None, "max_lifetime": None} def get_retention_policy_for_room_txn(txn):