aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/routing/state.go')
-rw-r--r--federationapi/routing/state.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/federationapi/routing/state.go b/federationapi/routing/state.go
index 37cbb9d1..a202c92c 100644
--- a/federationapi/routing/state.go
+++ b/federationapi/routing/state.go
@@ -129,6 +129,13 @@ func getState(
return nil, nil, &resErr
}
+ if response.IsRejected {
+ return nil, nil, &util.JSONResponse{
+ Code: http.StatusNotFound,
+ JSON: jsonerror.NotFound("Event not found"),
+ }
+ }
+
if !response.RoomExists {
return nil, nil, &util.JSONResponse{Code: http.StatusNotFound, JSON: nil}
}