pull/3631/head
Will Hunt 5 years ago
parent d885bcf27b
commit 10a2df2069

@ -18,7 +18,7 @@ This proposal aims to implement a simple mechanism to fetch rooms you have in co
## Proposal ## Proposal
Homeservers should implement a new endpoint `/users/{current_user}/shared_rooms/{other_user_id}` which will take Homeservers should implement a new endpoint `/user/shared_rooms/{other_user_id}` which will take
the authenticated users MxID and the user that is being searched for. the authenticated users 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 `current_user` and `other_user_id` have
@ -26,12 +26,12 @@ a membership of type `join`. If either user is not joined to any rooms, or the `
empty array should be returned. empty array should be returned.
``` ```
GET _matrix/client/unstable/users/@alice:example.com/shared_rooms/@bob:example.com GET _matrix/client/r0/user/shared_rooms/@bob:example.com
``` ```
```json ```json
{ {
"rooms": [ "joined": [
"!OGEhHVWSdvArJzumhm:matrix.org", "!OGEhHVWSdvArJzumhm:matrix.org",
"!HYlSnuBHTxUPgyZPKC:half-shot.uk", "!HYlSnuBHTxUPgyZPKC:half-shot.uk",
"!DueayyFpVTeVOQiYjR:example.com" "!DueayyFpVTeVOQiYjR:example.com"
@ -66,7 +66,7 @@ to request all state ahead of time.
## Unstable prefix ## Unstable prefix
The implementation MUST use `/_matrix/client/unstable/users/{user_id}/shared_rooms/{other_user_id}`. The implementation MUST use `/_matrix/client/unstable/user/shared_rooms/{other_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/users/{user_id}/shared_rooms/{other_user_id}` Once the MSC has been merged, clients should use `/_matrix/client/r0/user/shared_rooms/{other_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