This commit is contained in:
Valere 2021-05-10 11:44:31 +02:00
parent f9e608a790
commit 31b6d9844b

View file

@ -129,13 +129,12 @@ class SpaceManageRoomsViewModel @AssistedInject constructor(
val errorList = mutableListOf<Throwable>()
selection.forEach { info ->
try {
// session.spaceService().getSpace(state.spaceId)?.setChildrenSuggested(roomId, suggested)
session.spaceService().getSpace(state.spaceId)?.addChildren(
roomId = info.childRoomId,
viaServers = info?.viaServers ?: emptyList(),
order = info?.order,
viaServers = info.viaServers,
order = info.order,
suggested = suggested,
autoJoin = info?.autoJoin ?: false
autoJoin = info.autoJoin
)
} catch (failure: Throwable) {
errorList.add(failure)