mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-15 20:42:31 -04:00
Make sure a retention policy is a state event (#8527)
* Make sure a retention policy is a state event * Changelog
This commit is contained in:
parent
ec606ea9e3
commit
3ee97a2748
3 changed files with 8 additions and 0 deletions
|
@ -1270,6 +1270,10 @@ class PersistEventsStore:
|
|||
)
|
||||
|
||||
def _store_retention_policy_for_room_txn(self, txn, event):
|
||||
if not event.is_state():
|
||||
logger.debug("Ignoring non-state m.room.retention event")
|
||||
return
|
||||
|
||||
if hasattr(event, "content") and (
|
||||
"min_lifetime" in event.content or "max_lifetime" in event.content
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue