From 802f4ea5d87e921544558f336f5e58a42626243f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 28 Oct 2020 16:53:45 +0100 Subject: [PATCH] cleanup --- .../app/features/roomdirectory/createroom/CreateRoomFragment.kt | 1 - .../features/roomdirectory/createroom/CreateRoomViewModel.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomFragment.kt b/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomFragment.kt index a6ddddd495..88b8a65a1c 100644 --- a/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomFragment.kt +++ b/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomFragment.kt @@ -33,7 +33,6 @@ import im.vector.app.core.platform.VectorBaseFragment import im.vector.app.core.resources.ColorProvider import im.vector.app.features.roomdirectory.RoomDirectorySharedAction import im.vector.app.features.roomdirectory.RoomDirectorySharedActionViewModel -import im.vector.app.features.roomprofile.settings.RoomSettingsAction import kotlinx.android.synthetic.main.fragment_create_room.* import timber.log.Timber import javax.inject.Inject diff --git a/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomViewModel.kt b/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomViewModel.kt index 8e4650b467..57af95b107 100644 --- a/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/roomdirectory/createroom/CreateRoomViewModel.kt @@ -105,7 +105,7 @@ class CreateRoomViewModel @AssistedInject constructor(@Assisted initialState: Cr private fun doReset() { setState { // Delete temporary file with the avatar - avatarUri?.let { tryOrNull { it.toFile().delete() }} + avatarUri?.let { tryOrNull { it.toFile().delete() } } CreateRoomViewState( isEncrypted = adminE2EByDefault,