diff --git a/vector/src/main/java/im/vector/app/features/createdirect/CreateDirectRoomActivity.kt b/vector/src/main/java/im/vector/app/features/createdirect/CreateDirectRoomActivity.kt index 3221a5bf66..f73799d0e9 100644 --- a/vector/src/main/java/im/vector/app/features/createdirect/CreateDirectRoomActivity.kt +++ b/vector/src/main/java/im/vector/app/features/createdirect/CreateDirectRoomActivity.kt @@ -168,11 +168,8 @@ class CreateDirectRoomActivity : SimpleFragmentActivity() { } } - private fun renderCreationSuccess(roomId: String?) { - // Navigate to freshly created room - if (roomId != null) { - navigator.openRoom(this, roomId) - } + private fun renderCreationSuccess(roomId: String) { + navigator.openRoom(this, roomId) finish() }