Remove useless nullability in method param

This commit is contained in:
Florian Renaud 2021-12-17 17:28:35 +01:00
parent 61b74bb083
commit c13feb983e

View file

@ -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()
}