mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-26 01:37:43 +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() {
|
override fun onContinue() {
|
||||||
val idOrONS = state.value.newMessageIdOrOns
|
val idOrONS = state.value.newMessageIdOrOns.trim()
|
||||||
|
|
||||||
if (PublicKeyValidation.isValid(idOrONS, isPrefixRequired = false)) {
|
if (PublicKeyValidation.isValid(idOrONS, isPrefixRequired = false)) {
|
||||||
onUnvalidatedPublicKey(publicKey = idOrONS)
|
onUnvalidatedPublicKey(publicKey = idOrONS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user