mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
Trimming the accound ID when validating it
This commit is contained in:
parent
c883b8dc91
commit
b4f13bbe82
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user