mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 19:42:13 +00:00
android: disable create button when display name is not valid (#396)
This commit is contained in:
1 parent
1ab68172cb
commit
fd28c939f5
1 file changed
+1
-1
@@ -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