mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 03:32:12 -04:00
Merge branch 'develop' of github.com:matrix-org/synapse into use-simplejson
This commit is contained in:
commit
42bc56dad3
10 changed files with 260 additions and 24 deletions
|
@ -163,6 +163,9 @@ class DataStore(RoomMemberStore, RoomStore,
|
|||
stream_ordering=None, is_new_state=True,
|
||||
current_state=None):
|
||||
|
||||
# Remove the any existing cache entries for the event_id
|
||||
self._get_event_cache.pop(event.event_id)
|
||||
|
||||
# We purposefully do this first since if we include a `current_state`
|
||||
# key, we *want* to update the `current_state_events` table
|
||||
if current_state:
|
||||
|
@ -426,6 +429,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…
Add table
Add a link
Reference in a new issue