diff --git a/synapse/storage/controllers/state.py b/synapse/storage/controllers/state.py index d1bdf944fb..f3630fbbf1 100644 --- a/synapse/storage/controllers/state.py +++ b/synapse/storage/controllers/state.py @@ -436,8 +436,8 @@ class StateStorageController: ) ) - # FIXME: Do we have to worry about gaps? What happens if we try to get a point - # in the room we haven't backfilled before? + # FIXME: This will return incorrect results when there are timeline gaps. For + # example, when you try to get a point in the room we haven't backfilled before. if last_event_id: state = await self.get_state_after_event(