mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-04-25 13:19:06 -04:00
Fix bug in per-room message retention policies. (#7850)
This commit is contained in:
parent
85223106f3
commit
8d0097bef1
1
changelog.d/7850.bugfix
Normal file
1
changelog.d/7850.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
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):
|
|||||||
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user