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 e12337a2..d5b2a654 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