forked from MirrorHub/synapse
Invalidate the cache for an event if it is redacted
This commit is contained in:
parent
aff892ce79
commit
ddc25cf4e2
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue