From 70714595bcc2394d62f9413d8dbcede8296eecd4 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Wed, 24 Jul 2019 14:21:01 +0200 Subject: Implement per-room message retention policies --- synapse/storage/events.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'synapse/storage/events.py') diff --git a/synapse/storage/events.py b/synapse/storage/events.py index f9162be9b9..bc3e6de3bf 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py @@ -1405,6 +1405,9 @@ class EventsStore( elif event.type == EventTypes.GuestAccess: # Insert into the event_search table. self._store_guest_access_txn(txn, event) + elif event.type == EventTypes.Retention: + # Update the room_retention table. + self._store_retention_policy_for_room_txn(txn, event) self._handle_event_relations(txn, event) -- cgit 1.5.1