From 8ea34f7fc63537b6efcc462b03fd1d3bbfbb85fc Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Thu, 25 May 2017 12:23:52 +0100 Subject: [PATCH] Add TODO for moving authEventIDs to gomatrixserverlib --- .../matrix-org/dendrite/clientapi/producers/roomserver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/dendrite/clientapi/producers/roomserver.go b/src/github.com/matrix-org/dendrite/clientapi/producers/roomserver.go index 5e2eed77e..c05da98d2 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/producers/roomserver.go +++ b/src/github.com/matrix-org/dendrite/clientapi/producers/roomserver.go @@ -92,6 +92,7 @@ func (c *RoomserverProducer) SendEventWithState(state gomatrixserverlib.RespStat return c.SendInputRoomEvents(ires, eventIDs) } +// TODO Make this a method on gomatrixserverlib.Event func authEventIDs(event gomatrixserverlib.Event) (ids []string) { for _, ref := range event.AuthEvents() { ids = append(ids, ref.EventID)