Fix typo in structure name

This commit is contained in:
Brendan Abolivier 2018-11-13 18:08:39 +00:00
parent 4a3c9555b1
commit 955dd2c96d
No known key found for this signature in database
GPG key ID: 8EF1500759F70623

View file

@ -45,7 +45,7 @@ type messagesReq struct {
backwardOrdering bool backwardOrdering bool
} }
type messageResp struct { type messagesResp struct {
Start string `json:"start"` Start string `json:"start"`
End string `json:"end"` End string `json:"end"`
Chunk []gomatrixserverlib.ClientEvent `json:"chunk"` Chunk []gomatrixserverlib.ClientEvent `json:"chunk"`
@ -153,7 +153,7 @@ func OnIncomingMessagesRequest(
// Respond with the events. // Respond with the events.
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusOK, Code: http.StatusOK,
JSON: messageResp{ JSON: messagesResp{
Chunk: clientEvents, Chunk: clientEvents,
Start: start.String(), Start: start.String(),
End: end.String(), End: end.String(),