Merge pull request #1773 from vector-im/feature/bma/recoveryKeyErrorDialog

Feature/bma/recovery key error dialog
This commit is contained in:
Benoit Marty
2023-11-09 14:30:49 +01:00
committed by GitHub
4 changed files with 8 additions and 4 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>