Skip to content

Commit cb83c5a

Browse files
clokeprichvdh
andauthored
Clarify which rooms are returned from /hierarchy (matrix-org#2064)
Signed-off-by: Patrick Cloke <[email protected]> Co-authored-by: Richard van der Hoff <[email protected]>
1 parent c2ef38f commit cb83c5a

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify which rooms are returned from `/hierarchy`.

data/api/client-server/space_hierarchy.yaml

+12-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,18 @@ paths:
8888
properties:
8989
rooms:
9090
type: array
91-
description: The rooms for the current page, with the current filters.
91+
description: |-
92+
The rooms for the current page, with the current filters.
93+
94+
The server should return any rooms where at least one of the following conditions is true:
95+
96+
* The requesting user is currently a member (their [room membership](#room-membership) is `join`).
97+
* The requesting user already has permission to join, i.e. one of the following:
98+
* The user's room membership is `invite`.
99+
* The room's [join rules](#mroomjoin_rules) are set to `public`.
100+
* The room's join rules are set to [`restricted`](#restricted-rooms), provided the user meets one of the specified conditions.
101+
* The room is "knockable" (the room's join rules are set to `knock`, or `knock_restricted`, in a room version that supports those settings).
102+
* The room's [`m.room.history_visibility`](#room-history-visibility) is set to `world_readable`.
92103
items:
93104
allOf:
94105
- $ref: definitions/public_rooms_chunk.yaml

0 commit comments

Comments
 (0)