Use delegation for rememberedEmailAddress (#302)

This commit is contained in:
Brian Yencho 2023-11-30 10:23:52 -06:00 committed by Álison Fernandes
parent b279633166
commit 641b5c35bf

View file

@ -102,11 +102,7 @@ class AuthRepositoryImpl constructor(
override val captchaTokenResultFlow: Flow<CaptchaCallbackTokenResult> =
mutableCaptchaTokenFlow.asSharedFlow()
override var rememberedEmailAddress: String?
get() = authDiskSource.rememberedEmailAddress
set(value) {
authDiskSource.rememberedEmailAddress = value
}
override var rememberedEmailAddress: String? by authDiskSource::rememberedEmailAddress
override suspend fun deleteAccount(password: String): DeleteAccountResult {
val profile = authDiskSource.userState?.activeAccount?.profile