Skip to content
Snippets Groups Projects
Unverified Commit 8d0097be authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Fix bug in per-room message retention policies. (#7850)

parent 85223106
No related branches found
No related tags found
No related merge requests found
Fix "AttributeError: 'str' object has no attribute 'get'" error message when applying per-room message retention policies. The bug was introduced in Synapse 1.7.0.
...@@ -916,7 +916,7 @@ class RoomBackgroundUpdateStore(SQLBaseStore): ...@@ -916,7 +916,7 @@ class RoomBackgroundUpdateStore(SQLBaseStore):
retention_policy = {} retention_policy = {}
else: else:
ev = json.loads(row["json"]) ev = json.loads(row["json"])
retention_policy = json.dumps(ev["content"]) retention_policy = ev["content"]
self.db.simple_insert_txn( self.db.simple_insert_txn(
txn=txn, txn=txn,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment