1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3151 Spaces | Enhancement | Apply empty use if user has more than two spaces when creating new space (#1907)

This commit is contained in:
Evgenii Kozlov 2024-12-11 22:18:15 +01:00 committed by Evgenii Kozlov
parent 2b751772fc
commit a7274257f3
9 changed files with 43 additions and 20 deletions

View file

@ -759,9 +759,8 @@ class BlockDataRepository(
remote.deleteSpace(space)
}
override suspend fun createWorkspace(details: Struct, withChat: Boolean): Id = remote.createWorkspace(
details = details,
withChat = withChat
override suspend fun createWorkspace(command: Command.CreateSpace): Id = remote.createWorkspace(
command = command
)
override suspend fun setSpaceDetails(space: SpaceId, details: Struct) {

View file

@ -339,7 +339,7 @@ interface BlockRemote {
suspend fun setSpaceDetails(space: SpaceId, details: Struct)
suspend fun deleteSpace(space: SpaceId)
suspend fun createWorkspace(details: Struct, withChat: Boolean): Id
suspend fun createWorkspace(command: Command.CreateSpace): Id
suspend fun getSpaceConfig(space: Id): Config