0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-26 06:43:46 +01:00
dendrite/clientapi/jsonerror
Neil Alexander 81843e8836
Restricted join support on /make_join, /send_join (#2478)
* Add `QueryRestrictedJoinAllowed`

* Add `Resident` flag to `QueryRestrictedJoinAllowedResponse`

* Check restricted joins on federation API

* Return `Restricted` to determine if the room was restricted or not

* Populate `AuthorisedVia` properly

* Sign the event on `/send_join`, return it in the `/send_join` response in the `"event"` key

* Kick back joins with invalid authorising user IDs, use event from `"event"` key if returned in `RespSendJoin`

* Use invite helper in `QueryRestrictedJoinAllowed`

* Only use users with the power to invite, change error bubbling a bit

* Placate the almighty linter

One day I will nuke `gocyclo` from orbit and everything in the world will be much better for it.

* Review comments
2022-05-25 10:05:30 +01:00
..
jsonerror.go Restricted join support on /make_join, /send_join (#2478) 2022-05-25 10:05:30 +01:00
jsonerror_test.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00