mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-11 15:17:43 +00:00
Ignore extra spaces and special characters in Recovery Password entry
This commit is contained in:
@@ -46,7 +46,7 @@ internal class LinkDeviceViewModel @Inject constructor(
|
||||
fun onContinue() {
|
||||
viewModelScope.launch {
|
||||
try {
|
||||
codec.decodeAsByteArray(state.value.recoveryPhrase).let(::onSuccess)
|
||||
codec.sanitizeAndDecodeAsByteArray(state.value.recoveryPhrase).let(::onSuccess)
|
||||
} catch (e: Exception) {
|
||||
onFailure(e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user