mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 17:35:54 +03:00
code review
This commit is contained in:
commit
63355ca256
1 changed files with 5 additions and 0 deletions
|
@ -195,6 +195,9 @@ class KeysBackupRestoreSharedViewModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
} catch (failure: Throwable) {
|
||||
_navigateEvent.postValue(
|
||||
LiveEvent(NAVIGATE_FAILED_TO_LOAD_4S)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -218,6 +221,7 @@ class KeysBackupRestoreSharedViewModel @Inject constructor(
|
|||
didRecoverSucceed(result)
|
||||
trustOnDecrypt(keysBackup, keyVersion)
|
||||
} catch (failure: Throwable) {
|
||||
loadingEvent.postValue(null)
|
||||
throw failure
|
||||
}
|
||||
}
|
||||
|
@ -242,6 +246,7 @@ class KeysBackupRestoreSharedViewModel @Inject constructor(
|
|||
didRecoverSucceed(result)
|
||||
trustOnDecrypt(keysBackup, keyVersion)
|
||||
} catch (failure: Throwable) {
|
||||
loadingEvent.postValue(null)
|
||||
throw failure
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue