remove referneces to user_id

pull/3631/head
Will Hunt 5 years ago
parent d3b17e6ed1
commit 4ac7ce85f3

@ -18,13 +18,12 @@ This proposal aims to implement a simple mechanism to fetch rooms you have in co
## Proposal ## Proposal
Homeservers should implement a new endpoint `/user/shared_rooms/{other_user_id}` which will take Homeservers should implement a new endpoint `/user/shared_rooms/{user_id}` which will take
the authenticated user's MxID and the user that is being searched for. the authenticated user's MxID and the user that is being searched for.
The response format will be an array containing all rooms where both the `current_user` and `other_user_id` have The response format will be an array containing all rooms where both the authenticated user and `user_id` have
a membership of type `join`. If either user is not joined to any rooms, or the `other_user_id` does not exist, an a membership of type `join`. If the `user_id` does not exist, or does not share any rooms with the authenticated user,
empty array should be returned. If the `current_user` and `other_user_id` are the same, then the endpoint SHOULD an empty array should be returned.
reject with HTTP 400.
``` ```
GET _matrix/client/r0/user/shared_rooms/@bob:example.com GET _matrix/client/r0/user/shared_rooms/@bob:example.com
@ -68,7 +67,7 @@ to request all state ahead of time.
## Unstable prefix ## Unstable prefix
The implementation MUST use `/_matrix/client/unstable/uk.half-shot.msc2666/user/shared_rooms/{other_user_id}`. The implementation MUST use `/_matrix/client/unstable/uk.half-shot.msc2666/user/shared_rooms/{user_id}`.
The /versions endpoint MUST include a new key in `unstable_features` with the name `uk.half-shot.msc2666`. The /versions endpoint MUST include a new key in `unstable_features` with the name `uk.half-shot.msc2666`.
Once the MSC has been merged, clients should use `/_matrix/client/r0/user/shared_rooms/{other_user_id}` Once the MSC has been merged, clients should use `/_matrix/client/r0/user/shared_rooms/{user_id}`
and will no longer need to check for the `unstable_features` flag. and will no longer need to check for the `unstable_features` flag.

Loading…
Cancel
Save