0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 05:13:43 +01:00
dendrite/federationapi/routing
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
..
backfill.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
devices.go Clean up interface definitions (#2427) 2022-05-06 12:39:26 +01:00
eventauth.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
events.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
invite.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
join.go Restricted join support on /make_join, /send_join (#2478) 2022-05-25 10:05:30 +01:00
keys.go Clean up interface definitions (#2427) 2022-05-06 12:39:26 +01:00
leave.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
missingevents.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
openid.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
peek.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
profile.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
publicrooms.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
query.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
routing.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
send.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
send_test.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
state.go Define component interfaces based on consumers (2/2) (#2425) 2022-05-05 19:30:38 +01:00
threepid.go bugfix: E2EE device keys could sometimes not be sent to remote servers (#2466) 2022-05-17 13:23:35 +01:00
version.go Version imprint (#1383) 2020-09-02 16:18:08 +01:00