Feat spaces in discover - #15
Open
liviaUeno wants to merge 8 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add organizational Spaces support
Summary
Adds support for Matrix Spaces as organizational containers across the room service backend and the Element frontend. Spaces are
m.spacerooms that group other rooms (like folders). They are organizational only: always free, and they do not gate access to the rooms inside them — space membership and child-room access stay independent, as in standard Matrix. This is separate from Bundles (which sell/package rooms); Spaces organize, Bundles sell.Backend (room_service)
/create. The endpoint now accepts aroom_kindfield (default"group"). When"space"is passed, the room is created withcreation_content: { type: "m.space" }.room_kindis persisted in the room business metadata.get_visible_roomsreturns rows whereroom_kind IN ('group', 'space'), so both rooms and spaces come back from/discover, each tagged with itsroom_kindso the frontend can separate them.m.spacecreation events was removed so spaces can be created.Frontend (Element)
room_kindsent on creation. Space creation sendsroom_kind: "space"(rooms keep"group").Notes
paid-space work reuses the bundle's existing access mechanism (join the user into each child room) rather than rebuilding it.
Testing