From 31b6d9844b8b220376481d8c08d9fdb03c868afc Mon Sep 17 00:00:00 2001 From: Valere Date: Mon, 10 May 2021 11:44:31 +0200 Subject: [PATCH] Cleaning --- .../features/spaces/manage/SpaceManageRoomsViewModel.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/spaces/manage/SpaceManageRoomsViewModel.kt b/vector/src/main/java/im/vector/app/features/spaces/manage/SpaceManageRoomsViewModel.kt index d229c5072b..c018b9afd0 100644 --- a/vector/src/main/java/im/vector/app/features/spaces/manage/SpaceManageRoomsViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/spaces/manage/SpaceManageRoomsViewModel.kt @@ -129,13 +129,12 @@ class SpaceManageRoomsViewModel @AssistedInject constructor( val errorList = mutableListOf() 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)