fix navigating to captcha

This commit is contained in:
2024-07-13 01:40:58 +03:00
parent ce1867c22c
commit 08e82a309f
2 changed files with 3 additions and 2 deletions
@@ -10,6 +10,7 @@ import com.meloda.app.fast.common.extensions.updateValue
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.update
import java.net.URLDecoder
interface CaptchaViewModel {
val screenState: StateFlow<CaptchaScreenState>
@@ -37,7 +38,7 @@ class CaptchaViewModelImpl(
screenState.setValue { old ->
old.copy(
captchaSid = arguments.captchaSid,
captchaImage = arguments.captchaImage
captchaImage = URLDecoder.decode(arguments.captchaImage, "utf-8")
)
}
}