Improve dialog content when recovery key (or passphrase) is not correct.

This commit is contained in:
Benoit Marty
2023-11-08 14:35:15 +01:00
parent 4d48005f3d
commit 5376abcb0d
2 changed files with 4 additions and 0 deletions

View File

@@ -45,6 +45,8 @@ fun SecureBackupEnterRecoveryKeyView(
async = state.submitAction,
onSuccess = { onDone() },
showProgressDialog = false,
errorTitle = { stringResource(id = R.string.screen_recovery_key_confirm_error_title) },
errorMessage = { stringResource(id = R.string.screen_recovery_key_confirm_error_content) },
onErrorDismiss = { state.eventSink(SecureBackupEnterRecoveryKeyEvents.ClearDialog) },
)

View File

@@ -22,6 +22,8 @@
<string name="screen_recovery_key_change_success">"Recovery key changed"</string>
<string name="screen_recovery_key_change_title">"Change recovery key?"</string>
<string name="screen_recovery_key_confirm_description">"Enter your recovery key to confirm access to your chat backup."</string>
<string name="screen_recovery_key_confirm_error_content">"Please try again to confirm access to your chat backup."</string>
<string name="screen_recovery_key_confirm_error_title">"Incorrect recovery key"</string>
<string name="screen_recovery_key_confirm_key_description">"Enter the 48 character code."</string>
<string name="screen_recovery_key_confirm_key_placeholder">"Enter…"</string>
<string name="screen_recovery_key_confirm_success">"Recovery key confirmed"</string>