From ce2af7ed71e9e2300cf8d3d910031dada81a8fd8 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 7 Sep 2016 15:29:31 +0100 Subject: [PATCH] Add TODO marker --- src/github.com/matrix-org/go-neb/matrix/matrix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/github.com/matrix-org/go-neb/matrix/matrix.go b/src/github.com/matrix-org/go-neb/matrix/matrix.go index c197d57..d2e318b 100644 --- a/src/github.com/matrix-org/go-neb/matrix/matrix.go +++ b/src/github.com/matrix-org/go-neb/matrix/matrix.go @@ -280,6 +280,7 @@ func (cli *Client) shouldProcessResponse(tokenOnSync string, syncResponse *syncH // // Work around this by inspecting each room's timeline and seeing if an m.room.member event for us // exists and is "join" and then discard processing that room entirely if so. + // TODO: We probably want to process the !commands from after the last join event in the timeline. for roomID, roomData := range syncResponse.Rooms.Join { for i := len(roomData.Timeline.Events) - 1; i >= 0; i-- { e := roomData.Timeline.Events[i]