Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions WordPress/Classes/Utility/ZendeskUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import CoreTelephony

let presentInController = ZendeskUtils.configureViewController(controller)
ZDKRequests.presentRequestCreation(with: presentInController)
createRequest()
}

func showTicketList(from controller: UIViewController) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1401,15 +1401,26 @@ extension NotificationsViewController: AppFeedbackPromptViewDelegate {
WPAnalytics.track(.appReviewsOpenedFeedbackScreen)
AppRatingUtility.shared.gaveFeedbackForCurrentVersion()
hideRatingViewWithDelay(0.0)
if HelpshiftUtils.isHelpshiftEnabled() {
let presenter = HelpshiftPresenter.init()
presenter.sourceTag = SupportSourceTag.inAppFeedback
presenter.presentHelpshiftConversationWindowFromViewController(self,
refreshUserDetails: true,
completion: nil)

if FeatureFlag.zendeskMobile.enabled {
if ZendeskUtils.sharedInstance.zendeskEnabled {
ZendeskUtils.sharedInstance.showNewRequest(from: self)
} else {
if let contact = URL(string: NotificationsViewController.contactURL) {
UIApplication.shared.open(contact)
}
}
} else {
if let contact = URL(string: NotificationsViewController.contactURL) {
UIApplication.shared.open(contact)
if HelpshiftUtils.isHelpshiftEnabled() {
let presenter = HelpshiftPresenter.init()
presenter.sourceTag = SupportSourceTag.inAppFeedback
presenter.presentHelpshiftConversationWindowFromViewController(self,
refreshUserDetails: true,
completion: nil)
} else {
if let contact = URL(string: NotificationsViewController.contactURL) {
UIApplication.shared.open(contact)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,10 @@ private extension SupportTableViewController {
return { [unowned self] row in
self.tableView.deselectSelectedRowWithAnimation(true)
if ZendeskUtils.sharedInstance.zendeskEnabled {

guard let controllerToShowFrom = self.controllerToShowFrom() else {
return
}

ZendeskUtils.sharedInstance.showNewRequest(from: controllerToShowFrom)
ZendeskUtils.sharedInstance.createRequest()
} else {
guard let url = Constants.forumsURL else {
return
Expand Down