Commit graph

11 commits

Author SHA1 Message Date
Neil Alexander 91c6c694b2
Don't generate stripped state in client API more times than necessary, generate output events on receiving end of federated invite 2020-08-17 16:40:49 +01:00
Neil Alexander 9dcc67122a
oops send state key to GetMembership 2020-08-17 15:59:08 +01:00
Neil Alexander 8952c5a065
Nope, that didn't work 2020-08-17 15:56:36 +01:00
Neil Alexander 86b5ac35fb
Synchronous input room events 2020-08-17 15:07:48 +01:00
Neil Alexander a106424095
Don't limit roomserver input events using request context 2020-08-17 14:12:11 +01:00
Neil Alexander 5c6857f849
Invite input room events in separate goroutine 2020-08-17 13:54:01 +01:00
Neil Alexander 8fa3002f88
Make PerformJoin send input membership event 2020-08-17 13:38:58 +01:00
Neil Alexander 6cb1a65809
Synchronous invites (#1273)
* Refactor invites to be synchronous

* Fix synchronous invites

* Fix client API return type for send invite error

* Linter

* Restore PerformError on rsAPI.PerformInvite

* Update sytest-whitelist

* Don't override PerformError with normal errors

* Fix error passing

* Un-whitelist a couple of tests

* Update sytest-whitelist

* Try to handle multiple invite rejections better

* nolint

* Update gomatrixserverlib

* Fix /v1/invite test

* Remove replace from go.mod
2020-08-17 11:40:49 +01:00
Kegan Dougal 8ee4c0f71e Always set invite_room_state else synapse rejects invites 2020-08-04 12:14:18 +01:00
Kegsay e560619f76
Refactor SendMembership - make ban test pass (#1160)
* Refactor SendMembership - make ban test pass

* Only check invite auth events for local invites
2020-06-24 18:19:54 +01:00
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