mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android: disable create button when display name is not valid (#396)
This commit is contained in:
@@ -153,7 +153,7 @@ fun CreateProfilePanel(chatModel: ChatModel) {
|
||||
chatModel.controller.startChat(user)
|
||||
}
|
||||
},
|
||||
enabled = displayName.isNotEmpty()
|
||||
enabled = (displayName.isNotEmpty() && isValidDisplayName(displayName))
|
||||
) { Text("Create") }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user