Trimming the accound ID when validating it

This commit is contained in:
ThomasSession 2024-07-26 17:21:06 +10:00
parent c883b8dc91
commit b4f13bbe82

View File

@ -46,7 +46,7 @@ internal class NewMessageViewModel @Inject constructor(
}
override fun onContinue() {
val idOrONS = state.value.newMessageIdOrOns
val idOrONS = state.value.newMessageIdOrOns.trim()
if (PublicKeyValidation.isValid(idOrONS, isPrefixRequired = false)) {
onUnvalidatedPublicKey(publicKey = idOrONS)