This commit is contained in:
Benoit Marty 2020-10-28 16:53:45 +01:00
parent fffc8addcf
commit 802f4ea5d8
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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,