Remove a room from a space #13
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
robocub/vommet#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
You can add existing rooms to a space (and now search for them, #10), but there's no easy way to take a room back out. Discord users expect to drag channels in and out of categories freely.
What exists
Space.removeChild(SpaceChild)already works for any child:MatrixSpace.removeChildcallsremoveSpaceChild(child.id), which clears the space'sm.space.childstate event for it.SpaceList.buildChild(commet/lib/ui/atoms/space_list.dart) wraps sub-spaces in a context menu with "Remove from ", gated onpermissions.canEditChildren. Ordinary rooms get no menu at all.Plan
canEditChildrengate.m.space.parentpointing at this space when the user is allowed to, so clients that read parent links stop showing it under the space. If not allowed, remove the child link only and say so.Acceptance
Right-click a room in a space you can edit, choose "Remove from Space", confirm, and it disappears from the space for everyone; the room itself is untouched and can be re-added with the existing picker.
Filed with LLM assistance. This is a fork-only issue; never refile it on Commet's tracker.