summary refs log tree commit diff
path: root/synapse/storage/data_stores
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-07-14 15:51:13 -0400
committerGitHub <noreply@github.com>2020-07-14 15:51:13 -0400
commit8d0097bef112c848d37b1d2f601eb979e89245f6 (patch)
tree8f19e31d760a6d3ff6bee9e8cf20eec355b8fc43 /synapse/storage/data_stores
parentAllow email subjects to be customised through Synapse's configuration (#7846) (diff)
downloadsynapse-8d0097bef112c848d37b1d2f601eb979e89245f6.tar.xz
Fix bug in per-room message retention policies. (#7850)
Diffstat (limited to 'synapse/storage/data_stores')
-rw-r--r--synapse/storage/data_stores/main/room.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/room.py b/synapse/storage/data_stores/main/room.py
index dace20e6db..b4817d693f 100644
--- a/synapse/storage/data_stores/main/room.py
+++ b/synapse/storage/data_stores/main/room.py
@@ -916,7 +916,7 @@ class RoomBackgroundUpdateStore(SQLBaseStore):
                     retention_policy = {}
                 else:
                     ev = json.loads(row["json"])
-                    retention_policy = json.dumps(ev["content"])
+                    retention_policy = ev["content"]
 
                 self.db.simple_insert_txn(
                     txn=txn,