mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-24 16:51:07 +01:00
code review
This commit is contained in:
commit
63355ca256
@ -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 New Issue
Block a user