From b4f13bbe82fc246bee45457302e4950a49561891 Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Fri, 26 Jul 2024 17:21:06 +1000 Subject: [PATCH] Trimming the accound ID when validating it --- .../conversation/start/newmessage/NewMessageViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt index 65c8dd539a..6ed8a08233 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/start/newmessage/NewMessageViewModel.kt @@ -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)