mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-25 19:05:56 +03:00
Code Review Formatting
This commit is contained in:
parent
88119a15bf
commit
9190e1bfb5
1 changed files with 7 additions and 2 deletions
|
@ -58,8 +58,13 @@ class CreateSpaceViewModelTask @Inject constructor(
|
||||||
|
|
||||||
override suspend fun execute(params: CreateSpaceTaskParams): CreateSpaceTaskResult {
|
override suspend fun execute(params: CreateSpaceTaskParams): CreateSpaceTaskResult {
|
||||||
val spaceID = try {
|
val spaceID = try {
|
||||||
session.spaceService().createSpace(params.spaceName, params.spaceTopic, params.spaceAvatar,
|
session.spaceService().createSpace(
|
||||||
params.isPublic, params.spaceAlias)
|
params.spaceName,
|
||||||
|
params.spaceTopic,
|
||||||
|
params.spaceAvatar,
|
||||||
|
params.isPublic,
|
||||||
|
params.spaceAlias
|
||||||
|
)
|
||||||
} catch (failure: Throwable) {
|
} catch (failure: Throwable) {
|
||||||
return CreateSpaceTaskResult.FailedToCreateSpace(failure)
|
return CreateSpaceTaskResult.FailedToCreateSpace(failure)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue