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