From 3afa019b37e89ec7025f5c2f7a23ea56371a45bd Mon Sep 17 00:00:00 2001 From: Taras Smakula <tarassmakula@gmail.com> Date: Thu, 24 Aug 2023 17:10:47 +0300 Subject: [PATCH] Clear provider after signup --- .../org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt | 2 ++ auth/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt b/auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt index a088f9509..3165e304f 100644 --- a/auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt +++ b/auth/src/main/java/org/futo/circles/auth/feature/sign_up/SignUpDataSource.kt @@ -4,6 +4,7 @@ import android.content.Context import androidx.lifecycle.MutableLiveData import dagger.hilt.android.qualifiers.ApplicationContext import org.futo.circles.auth.R +import org.futo.circles.auth.bsspeke.BSSpekeClientProvider import org.futo.circles.auth.feature.pass_phrase.create.CreatePassPhraseDataSource import org.futo.circles.auth.feature.sign_up.subscription_stage.SubscriptionStageDataSource import org.futo.circles.auth.model.SubscriptionReceiptData @@ -118,6 +119,7 @@ class SignUpDataSource @Inject constructor( MatrixSessionProvider.awaitForSessionStart(session) createPassPhraseDataSource.createPassPhraseBackup(userName, domain, passphrase) coreSpacesTreeBuilder.createCoreSpacesTree() + BSSpekeClientProvider.clear() } private fun getCurrentStageIndex() = diff --git a/auth/src/main/res/values/strings.xml b/auth/src/main/res/values/strings.xml index a046a4981..d57fc508e 100644 --- a/auth/src/main/res/values/strings.xml +++ b/auth/src/main/res/values/strings.xml @@ -40,6 +40,7 @@ <string name="good_password">Good password</string> <string name="strong_password">Strong password</string> <string name="very_strong_password">Very strong password</string> + <string name="backup_could_not_be_decrypted_with_key">Backup could not be decrypted with this recovery key.</string> <string name="generating_recovery_key">Generating recovery key from passphrase.</string> <string name="creating_backup">Creating backup</string> <string name="backup_already_exist">Backup already exist</string> -- GitLab