From e0cd3d6e487b0f585bcb1f2636e5e91d7ef57350 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Wed, 22 Feb 2017 15:25:32 +0000 Subject: [PATCH] Fix comment --- .../matrix-org/dendrite/roomserver/input/latest_events.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,