Commit 31b6d984 authored by Valere's avatar Valere
Browse files

Cleaning

parent f9e608a7
...@@ -129,13 +129,12 @@ class SpaceManageRoomsViewModel @AssistedInject constructor( ...@@ -129,13 +129,12 @@ class SpaceManageRoomsViewModel @AssistedInject constructor(
val errorList = mutableListOf<Throwable>() val errorList = mutableListOf<Throwable>()
selection.forEach { info -> selection.forEach { info ->
try { try {
// session.spaceService().getSpace(state.spaceId)?.setChildrenSuggested(roomId, suggested)
session.spaceService().getSpace(state.spaceId)?.addChildren( session.spaceService().getSpace(state.spaceId)?.addChildren(
roomId = info.childRoomId, roomId = info.childRoomId,
viaServers = info?.viaServers ?: emptyList(), viaServers = info.viaServers,
order = info?.order, order = info.order,
suggested = suggested, suggested = suggested,
autoJoin = info?.autoJoin ?: false autoJoin = info.autoJoin
) )
} catch (failure: Throwable) { } catch (failure: Throwable) {
errorList.add(failure) errorList.add(failure)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment