Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit cd99f8c

Browse files
committed
Renaming method to not be Helpshift specific.
1 parent 2071fbb commit cd99f8c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

WordPressAuthenticator/Extensions/FancyAlertViewController+LoginError.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ extension FancyAlertViewController {
7373
if WordPressAuthenticator.shared.delegate?.supportEnabled == true {
7474
// TODO: Placeholder Jetpack login error message. Needs updating with final wording. 2017-06-15 Aerych.
7575
message = NSLocalizedString("We're not able to connect to the Jetpack site at that URL. Contact us for assistance.", comment: "Error message shown when having trouble connecting to a Jetpack site.")
76-
return alertForGenericErrorMessageWithHelpshiftButton(message, loginFields: loginFields, sourceTag: sourceTag)
76+
return alertForGenericErrorMessageWithHelpButton(message, loginFields: loginFields, sourceTag: sourceTag)
7777
}
7878
}
7979

8080
if error.domain != WPXMLRPCFaultErrorDomain && error.code != NSURLErrorBadURL {
8181
if WordPressAuthenticator.shared.delegate?.supportEnabled == true {
82-
return alertForGenericErrorMessageWithHelpshiftButton(message, loginFields: loginFields, sourceTag: sourceTag)
82+
return alertForGenericErrorMessageWithHelpButton(message, loginFields: loginFields, sourceTag: sourceTag)
8383
}
8484

8585
return alertForGenericErrorMessage(message, loginFields: loginFields, sourceTag: sourceTag)
@@ -132,12 +132,12 @@ extension FancyAlertViewController {
132132

133133

134134
/// Shows a generic error message. The view
135-
/// is configured so the user can open Helpshift for assistance.
135+
/// is configured so the user can open Support for assistance.
136136
///
137137
/// - Parameter message: The error message to show.
138138
/// - Parameter sourceTag: tag of the source of the error
139139
///
140-
static func alertForGenericErrorMessageWithHelpshiftButton(_ message: String, loginFields: LoginFields, sourceTag: WordPressSupportSourceTag) -> FancyAlertViewController {
140+
static func alertForGenericErrorMessageWithHelpButton(_ message: String, loginFields: LoginFields, sourceTag: WordPressSupportSourceTag) -> FancyAlertViewController {
141141
let moreHelpButton = ButtonConfig(Strings.moreHelp) { controller, _ in
142142
controller.dismiss(animated: true) {
143143
// Find the topmost view controller that we can present from

WordPressAuthenticator/NUX/NUXViewControllerBase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ extension NUXViewControllerBase where Self: UIViewController, Self: UIViewContro
8787
///
8888
public func displayErrorAlert(_ message: String, sourceTag: WordPressSupportSourceTag) {
8989
let presentingController = navigationController ?? self
90-
let controller = FancyAlertViewController.alertForGenericErrorMessageWithHelpshiftButton(message, loginFields: loginFields, sourceTag: sourceTag)
90+
let controller = FancyAlertViewController.alertForGenericErrorMessageWithHelpButton(message, loginFields: loginFields, sourceTag: sourceTag)
9191
controller.modalPresentationStyle = .custom
9292
controller.transitioningDelegate = self
9393
presentingController.present(controller, animated: true, completion: nil)

0 commit comments

Comments
 (0)