dendrite/roomserver/api
Kegsay 18231f25b4
Implement rejected events (#1426)
* WIP Event rejection

* Still send back errors for rejected events

Instead, discard them at the federationapi /send layer rather than
re-implementing checks at the clientapi/PerformJoin layer.

* Implement rejected events

Critically, rejected events CAN cause state resolution to happen
as it can merge forks in the DAG. This is fine, _provided_ we
do not add the rejected event when performing state resolution,
which is what this PR does. It also fixes the error handling
when NotAllowed happens, as we were checking too early and needlessly
handling NotAllowed in more than one place.

* Update test to match reality

* Modify InputRoomEvents to no longer return an error

Errors do not serialise across HTTP boundaries in polylith mode,
so instead set fields on the InputRoomEventsResponse. Add `Err()`
function to make the API shape basically the same.

* Remove redundant returns; linting

* Update blacklist
2020-09-16 13:00:52 +01:00
..
alias.go Convert everything but serverkeyapi to inthttp (#1096) 2020-06-04 15:43:07 +01:00
api.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
api_trace.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
input.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
output.go Handle state with input event as new events (#1415) 2020-09-15 11:17:46 +01:00
perform.go Peeking via MSC2753 (#1370) 2020-09-10 14:39:18 +01:00
query.go Remove QueryBulkStateContent from current state server (#1404) 2020-09-07 12:38:09 +01:00
wrapper.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00