Skip to content
Snippets Groups Projects
Commit d6fd6b88 authored by Taras's avatar Taras
Browse files

Replace backup after forgot password

parent 0488e920
No related branches found
No related tags found
No related merge requests found
......@@ -111,8 +111,11 @@ class UIAViewModel @Inject constructor(
fun finishForgotPassword(session: Session) {
launchBg {
val result = createResult {
passPhraseLoadingLiveData.postValue(
LoadingData(messageId = R.string.initial_sync, isLoading = true)
)
MatrixSessionProvider.awaitForSessionSync(session)
createPassPhraseDataSource.createPassPhraseBackup()
createPassPhraseDataSource.replaceToNewKeyBackup()
BSSpekeClientProvider.clear()
}
(result as? Response.Success)?.let {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment