Merge pull request #1576 from oxen-io/fix/trimmed-account-id

Trimming the accound ID when validating it
This commit is contained in:
ThomasSession 2024-07-29 08:04:50 +10:00 committed by GitHub
commit 51a43d1de1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)