dendrite/clientapi/routing
BtbN c4528b2de8
Allow users to kick themselves (#3157)
As per the spec:
https://spec.matrix.org/v1.7/rooms/v10/#authorization-rules

"If membership is leave"
->
"If the sender matches state_key, allow if and only if that user’s
current membership state is invite, join, or knock."

I.e. a user can kick themselves. Bridges use this to make a user leave
while giving a reason.

Some recent change (likely
8ea1a11105
but I'm not 100% sure) changed that behaviour, resulting in heisenbridge
being unable to make users leave while giving a reason.
This works fine on Synapse.

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Co-authored-by: kegsay <7190048+kegsay@users.noreply.github.com>
2023-11-22 12:15:45 +00:00
..
account_data.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
admin_whois.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
admin.go feat: admin APIs for token authenticated registration (#3101) 2023-06-22 16:37:21 +00:00
aliases.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
auth_fallback_test.go Remove BaseDendrite (#3023) 2023-03-22 09:21:32 +01:00
auth_fallback.go Add clientapi tests (#2916) 2022-12-23 14:11:11 +01:00
capabilities.go Add config key for default room version (#3171) 2023-08-08 14:20:05 +01:00
createroom.go Add config key for default room version (#3171) 2023-08-08 14:20:05 +01:00
deactivate.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
device.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
directory_public_test.go refactor: use latest GMSL which splits fed client from matrix room logic (#3051) 2023-04-06 09:55:01 +01:00
directory_public.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
directory.go Use *spec.SenderID for QuerySenderIDForUser (#3164) 2023-08-02 11:12:14 +01:00
joined_rooms.go [pseudoID] More pseudo ID fixes (#3167) 2023-08-15 12:37:04 +01:00
joinroom_test.go Use IsBlacklistedOrBackingOff to determine if we should try to fetch devices (#3254) 2023-11-09 08:43:27 +01:00
joinroom.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
key_backup.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
key_crosssigning.go Move json errors over to gmsl (#3080) 2023-05-09 22:46:49 +00:00
keys.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
leaveroom.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
login_test.go Use IsBlacklistedOrBackingOff to determine if we should try to fetch devices (#3254) 2023-11-09 08:43:27 +01:00
login.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
logout.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
membership.go Allow users to kick themselves (#3157) 2023-11-22 12:15:45 +00:00
notification.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
openid.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
password.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
peekroom.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
presence.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
profile.go Fix state resets (#3231) 2023-10-23 15:17:21 +02:00
pusher.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
pushrules.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
receipt.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
redaction.go Support for room version v11 (#3204) 2023-09-27 08:27:08 +02:00
register_secret_test.go Handle DisplayName field in admin user registration endpoint (#2935) 2023-01-10 18:09:25 +00:00
register_secret.go Handle DisplayName field in admin user registration endpoint (#2935) 2023-01-10 18:09:25 +00:00
register_test.go Refactor registration tests, remove hard-coded username validation (#3138) 2023-11-22 12:15:16 +00:00
register.go clean up dead links, fix typo (#3130) 2023-10-25 10:24:06 +02:00
room_hierarchy.go de-MSC-ifying space summaries (MSC2946) (#3134) 2023-07-20 15:06:05 +01:00
room_tagging.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
routing.go Add configuration option for sliding sync when hosting /.well-known/matrix/client (#3189) 2023-08-24 21:08:40 +00:00
sendevent_test.go [pseudoIDs] More pseudo ID fixes - Part 2 (#3181) 2023-08-24 16:43:51 +01:00
sendevent.go Complement fixes for pseudoIDs (#3206) 2023-09-26 17:44:49 +00:00
sendtodevice.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
sendtyping.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
server_notices_test.go Implement server notices (#2180) 2022-02-18 16:05:03 +01:00
server_notices.go [pseudoID] More pseudo ID fixes (#3167) 2023-08-15 12:37:04 +01:00
state_test.go [pseudoIDs] More pseudo ID fixes - Part 2 (#3181) 2023-08-24 16:43:51 +01:00
state.go Move pseudoID ClientEvent hotswapping to a common location (#3199) 2023-09-15 15:25:09 +00:00
thirdparty.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
threepid.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
upgrade_room.go Cleanup remaining statekey usage for senderIDs (#3106) 2023-06-12 11:19:25 +00:00
userdirectory.go Move fedclient interface over to gmsl (#3061) 2023-04-24 16:23:25 +00:00
voip.go Move MakeJoin logic to GMSL (#3081) 2023-05-17 00:33:27 +00:00
whoami.go Update /whoami response to match Spec v1.2 (#2201) 2022-02-18 11:28:02 +00:00