summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2021-05-10 15:48:27 +0100
committerErik Johnston <erik@matrix.org>2021-05-10 15:48:27 +0100
commite5c6aafe61b4a24bcdac28ae32f80e091de6bf57 (patch)
tree4c682719f1eeebae52d21cd60abe6f84bb0485bc
parentHandle deduplicating multiple fetch event requests (diff)
downloadsynapse-erikj/weakref_events.tar.xz
-rw-r--r--synapse/storage/databases/main/events_worker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py
index 430dad1b9b..c4e5d386bb 100644
--- a/synapse/storage/databases/main/events_worker.py
+++ b/synapse/storage/databases/main/events_worker.py
@@ -742,6 +742,8 @@ class EventsWorkerStore(SQLBaseStore):
             # that would require a larger refactor).
             cached_entry = self._in_memory_events.get(event_id)
             if cached_entry is not None:
+                # We need to add to the event_map as we read from it to fetch redactions.
+                event_map[event_id] = cached_entry.event
                 result_map[event_id] = cached_entry
                 self._get_event_cache.set((event_id,), cached_entry)
                 continue