dendrite/roomserver/storage/sqlite3
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
..
event_json_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
event_state_keys_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
event_types_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
events_table.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
invite_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
membership_table.go Remove QuerySharedUsers from current state server (#1396) 2020-09-04 14:25:01 +01:00
previous_events_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
published_table.go Roomserver per-room input parallelisation (Postgres) (#1289) 2020-08-20 16:24:33 +01:00
redactions_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
room_aliases_table.go Roomserver per-room input parallelisation (Postgres) (#1289) 2020-08-20 16:24:33 +01:00
rooms_table.go Implement more CSS storage functions in roomserver (#1388) 2020-09-03 18:27:02 +01:00
state_block_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
state_block_table_test.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
state_snapshot_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00
storage.go Expand RoomInfo to cover more DB storage functions (#1377) 2020-09-02 10:02:48 +01:00
transactions_table.go Transaction writer changes, move roomserver writers (#1285) 2020-08-19 15:38:27 +01:00