Fix LookupStateIDs

This commit is contained in:
Neil Alexander 2022-08-08 11:47:17 +01:00
parent b3a7087e8e
commit b0ec5d12d0
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -109,8 +109,8 @@ func AddRoutes(intAPI api.FederationInternalAPI, internalAPIMux *mux.Router) {
FederationAPILookupStateIDsPath,
httputil.MakeInternalProxyAPI(
"LookupStateIDs",
func(ctx context.Context, req *lookupState) {
res, err := intAPI.LookupState(ctx, req.S, req.RoomID, req.EventID, req.RoomVersion)
func(ctx context.Context, req *lookupStateIDs) {
res, err := intAPI.LookupStateIDs(ctx, req.S, req.RoomID, req.EventID)
req.Res, req.Err = &res, federationClientError(err)
},
),