Add confirmation sheet after reseting username link and QR code

This commit is contained in:
Elaine 2024-02-14 11:44:36 -07:00 committed by GitHub
parent 374a5d0382
commit b1bbc8be62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 1 deletions

View File

@ -639,6 +639,15 @@ class UsernameLinkPresentQRCodeViewController: OWSTableViewController2 {
self.usernameChangeDelegate?.usernameStateDidChange(
newState: latestUsernameState
)
}.done(on: schedulers.main) { _ in
OWSActionSheets.showActionSheet(
message: OWSLocalizedString(
"USERNAME_LINK_QR_CODE_VIEW_RESET_SUCCESSFUL",
comment: "Text presenting an action sheet notifying the user their QR code and link were reset."
),
fromViewController: self,
dismissalDelegate: self
)
}.catch(on: schedulers.main) { [weak self] error in
guard let self else { return }

View File

@ -7697,7 +7697,10 @@
"USERNAME_LINK_QR_CODE_VIEW_RESET_BUTTON_TITLE" = "Reset";
/* A message explaining what will happen if the user resets their QR code. */
"USERNAME_LINK_QR_CODE_VIEW_RESET_SHEET_MESSAGE" = "If you reset your QR code, your existing QR code and link will no longer work.";
"USERNAME_LINK_QR_CODE_VIEW_RESET_SHEET_MESSAGE" = "If you reset your QR code and link, your existing QR code and link will no longer work.";
/* Text presenting an action sheet notifying the user their QR code and link were reset. */
"USERNAME_LINK_QR_CODE_VIEW_RESET_SUCCESSFUL" = "Your QR code and link have been reset and a new QR code and link has been created.";
/* Title for a button to share your username link QR code. Lowercase styling is intentional. */
"USERNAME_LINK_QR_CODE_VIEW_SHARE_BUTTON" = "share";