mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-08 13:01:53 +00:00
Invalidate the cache for an event if it is redacted
This commit is contained in:
parent
aff892ce79
commit
ddc25cf4e2
@ -423,6 +423,8 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||
)
|
||||
|
||||
def _store_redaction(self, txn, event):
|
||||
# invalidate the cache for the redacted event
|
||||
self._get_event_cache.pop(event.redacts)
|
||||
txn.execute(
|
||||
"INSERT OR IGNORE INTO redactions "
|
||||
"(event_id, redacts) VALUES (?,?)",
|
||||
|
Loading…
Reference in New Issue
Block a user