0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-04 12:08:40 +02:00
dendrite/federationapi/routing
Kegsay 002fe05a20
Add PerformInvite and refactor how errors get handled (#1158)
* Add PerformInvite and refactor how errors get handled

- Rename `JoinError` to `PerformError`
- Remove `error` from the API function signature entirely. This forces
  errors to be bundled into `PerformError` which makes it easier for callers
  to detect and handle errors. On network errors, HTTP clients will make a
  `PerformError`.

* Unbreak everything; thanks Go!

* Send back JSONResponse according to the PerformError

* Update federation invite code too
2020-06-24 15:06:14 +01:00
..
backfill.go Roomserver API changes (#1118) 2020-06-11 19:50:40 +01:00
devices.go Make federationapi use userapi (#1135) 2020-06-16 14:53:19 +01:00
eventauth.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
events.go Fix room checks for /state and /state_ids (#1155) 2020-06-23 11:47:48 +01:00
invite.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
join.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
keys.go s/Base64String/Base64Bytes/g (#1093) 2020-06-04 11:50:57 +01:00
leave.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
missingevents.go Hopefully fix get_missing_events (#1070) 2020-05-28 12:44:34 +01:00
profile.go Make federationapi use userapi (#1135) 2020-06-16 14:53:19 +01:00
query.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00
routing.go Do not wrap send_join errors on /v1/send_join (#1143) 2020-06-17 13:55:55 +01:00
send.go Add /send restrictions and return correct error codes (#1156) 2020-06-23 13:15:15 +01:00
send_test.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
state.go Fix room checks for /state and /state_ids (#1155) 2020-06-23 11:47:48 +01:00
threepid.go Make federationapi use userapi (#1135) 2020-06-16 14:53:19 +01:00
version.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00