dendrite/roomserver/internal/perform
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
..
perform_admin.go Add /_dendrite/admin/evacuateRoom/{roomID} (#2401) 2022-04-28 16:02:30 +01:00
perform_backfill.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
perform_forget.go
perform_inbound_peek.go Roomserver/federation input refactor (#2104) 2022-01-27 14:29:14 +00:00
perform_invite.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
perform_join.go Restricted join support on /make_join, /send_join (#2478) 2022-05-25 10:05:30 +01:00
perform_leave.go Clean up interface definitions (#2427) 2022-05-06 12:39:26 +01:00
perform_peek.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
perform_publish.go
perform_unpeek.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
perform_upgrade.go Added /upgrade endpoint (#2307) 2022-04-05 10:04:08 +01:00