mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Apply suggestions from code review
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
f46d41b2ed
commit
69b49530d1
|
|
@ -123,7 +123,7 @@ func GetEvent(
|
|||
return r.proceedWithStateEvents(stateResp.StateEvents)
|
||||
}
|
||||
|
||||
// proceedWithMissingState tries to proceed by fetching the missing states with
|
||||
// proceedWithMissingState tries to proceed by fetching the missing state over
|
||||
// federation.
|
||||
// Note: It's not guaranteed that the server(s) we query have the state events.
|
||||
func (r *getEventRequest) proceedWithMissingState() util.JSONResponse {
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ func Setup(
|
|||
}),
|
||||
).Methods(http.MethodPut, http.MethodOptions)
|
||||
r0mux.Handle("/rooms/{roomID}/event/{eventID}",
|
||||
common.MakeAuthAPI("room_get_event", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
|
||||
common.MakeAuthAPI("rooms_get_event", authData, func(req *http.Request, device *authtypes.Device) util.JSONResponse {
|
||||
vars := mux.Vars(req)
|
||||
return GetEvent(req, device, vars["roomID"], vars["eventID"], cfg, queryAPI, federation, keyRing)
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue