From 5b301d5dc34902fd97cfc0c63dba27c6f23cccd7 Mon Sep 17 00:00:00 2001 From: Mark Haines <mjark@negativecurvature.net> Date: Mon, 5 Jun 2017 16:45:06 +0100 Subject: [PATCH] Fix append --- .../matrix-org/dendrite/syncapi/storage/syncserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go b/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go index e12337a2e..d5b2a6544 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go +++ b/src/github.com/matrix-org/dendrite/syncapi/storage/syncserver.go @@ -317,7 +317,7 @@ func (d *SyncServerDatabase) fetchStateEvents(txn *sql.Tx, roomIDToEventIDSet ma } for _, ev := range evs { roomID := ev.RoomID() - stateBetween[roomID] = append(stateBetween[roomID]) + stateBetween[roomID] = append(stateBetween[roomID], ev) } } return stateBetween, nil