diff --git a/src/github.com/matrix-org/dendrite/roomserver/input/latest_events.go b/src/github.com/matrix-org/dendrite/roomserver/input/latest_events.go index 1b23ca21a..0bd18ff75 100644 --- a/src/github.com/matrix-org/dendrite/roomserver/input/latest_events.go +++ b/src/github.com/matrix-org/dendrite/roomserver/input/latest_events.go @@ -88,7 +88,8 @@ func doUpdateLatestEvents( } if !alreadyReferenced && !alreadyInLatest { - // This event is not referenced by any of the events in the room. + // This event is not referenced by any of the events in the room + // and the event is not already in the latest events. // Add it to the latest events newLatest = append(newLatest, types.StateAtEventAndReference{ StateAtEvent: stateAtEvent,