Skip to content

Commit

Permalink
- fix finding: if a feedback email address (previously had a default …
Browse files Browse the repository at this point in the history
…value) is provided, it is preferred over the feedback URL (previously did not have a default value)
  • Loading branch information
felix-schwarz committed Jul 23, 2024
1 parent 2e95ed3 commit 5e13b5f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ownCloud/Tools/VendorServices+App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ extension VendorServices {
}

public func sendFeedback(from viewController: UIViewController) {
if let sendFeedbackURL = Branding.shared.feedbackURL {
UIApplication.shared.open(sendFeedbackURL, options: [:], completionHandler: nil)
} else if let feedbackMail {
if let feedbackMail {
var buildType = "release".localized

if self.isBetaBuild {
Expand All @@ -62,6 +60,8 @@ extension VendorServices {
}

self.sendMail(to: feedbackMail, subject: "\(self.appVersion) (\(self.appBuildNumber)) \(buildType) \(self.appName)\(appSuffix)", message: nil, from: viewController)
} else if let sendFeedbackURL = Branding.shared.feedbackURL {
UIApplication.shared.open(sendFeedbackURL, options: [:], completionHandler: nil)
}
}

Expand Down

0 comments on commit 5e13b5f

Please sign in to comment.