Add addChildToSpace method to SpaceService

This commit is contained in:
ganfra 2026-01-20 21:04:23 +01:00
parent b5a34f9c65
commit c3a469544e
3 changed files with 19 additions and 0 deletions

View file

@ -98,6 +98,12 @@ class RustSpaceService(
}
}
override suspend fun addChildToSpace(spaceId: RoomId, childId: RoomId): Result<Unit> = withContext(sessionDispatcher) {
runCatchingExceptions {
innerSpaceService.addChildToSpace(childId = childId.value, spaceId = spaceId.value)
}
}
override suspend fun removeChildFromSpace(spaceId: RoomId, childId: RoomId): Result<Unit> = withContext(sessionDispatcher) {
runCatchingExceptions {
innerSpaceService.removeChildFromSpace(childId = childId.value, spaceId = spaceId.value)