aboutsummaryrefslogtreecommitdiff
path: root/roomserver/api
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-04-25 19:05:01 +0200
committerGitHub <noreply@github.com>2022-04-25 19:05:01 +0200
commite8ab2154aa57d46bffa2db1e7c1333c2fa40cb21 (patch)
tree4a3f99cc2e2f8a93fd8db06c707e8a3e5ebb84d2 /roomserver/api
parente95fc5c5e3e4945949fbc1e9036c599687925a4d (diff)
Return M_NOT_FOUND for rejected events (#2371)
* Return M_NOT_FOUND for rejected events * Add passing tests
Diffstat (limited to 'roomserver/api')
-rw-r--r--roomserver/api/query.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/roomserver/api/query.go b/roomserver/api/query.go
index 8f84edcb..ef2e6bb5 100644
--- a/roomserver/api/query.go
+++ b/roomserver/api/query.go
@@ -230,6 +230,8 @@ type QueryStateAndAuthChainResponse struct {
// The lists will be in an arbitrary order.
StateEvents []*gomatrixserverlib.HeaderedEvent `json:"state_events"`
AuthChainEvents []*gomatrixserverlib.HeaderedEvent `json:"auth_chain_events"`
+ // True if the queried event was rejected earlier.
+ IsRejected bool `json:"is_rejected"`
}
// QueryRoomVersionCapabilitiesRequest asks for the default room version