rooms property

List<SpaceRoomsChunk> rooms
getter/setter pair

The rooms for the current page, with the current filters.

The server should return any rooms where at least one of the following conditions is true:

  • The requesting user is currently a member (their room membership is join).
  • The requesting user already has permission to join, i.e. one of the following:
    • The user's room membership is invite.
    • The room's join rules are set to public.
    • The room's join rules are set to restricted, provided the user meets one of the specified conditions.
  • The room is "knockable" (the room's join rules are set to knock, or knock_restricted, in a room version that supports those settings).
  • The room's m.room.history_visibility is set to world_readable.

Implementation

List<SpaceRoomsChunk> rooms;