diff options
author | Shay <hillerys@element.io> | 2022-10-11 11:18:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-11 11:18:45 -0700 |
commit | a86b2f6837f0a067b0a014fbf5140e8773b8da2e (patch) | |
tree | 688048da772b1e5cd56070ce5fda8220af4c225f /synapse/handlers | |
parent | Handle `gottestfmt` repository move (#14144) (diff) | |
download | synapse-a86b2f6837f0a067b0a014fbf5140e8773b8da2e.tar.xz |
Fix a bug where redactions were not being sent over federation if we did not have the original event. (#13813)
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/appservice.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index 203b62e015..66f5b8d108 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -109,10 +109,13 @@ class ApplicationServicesHandler: last_token = await self.store.get_appservice_last_pos() ( upper_bound, - events, event_to_received_ts, - ) = await self.store.get_all_new_events_stream( - last_token, self.current_max, limit=100, get_prev_content=True + ) = await self.store.get_all_new_event_ids_stream( + last_token, self.current_max, limit=100 + ) + + events = await self.store.get_events_as_list( + event_to_received_ts.keys(), get_prev_content=True ) events_by_room: Dict[str, List[EventBase]] = {} |