mirror of
https://github.com/1f349/dendrite.git
synced 2024-12-23 08:44:11 +00:00
18231f25b4
* 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 |
||
---|---|---|
.. | ||
event_json_table.go | ||
event_state_keys_table.go | ||
event_types_table.go | ||
events_table.go | ||
invite_table.go | ||
membership_table.go | ||
previous_events_table.go | ||
published_table.go | ||
redactions_table.go | ||
room_aliases_table.go | ||
rooms_table.go | ||
state_block_table_test.go | ||
state_block_table.go | ||
state_snapshot_table.go | ||
storage.go | ||
transactions_table.go |