Remove redundant community link

This commit is contained in:
Davide De Rosa 2019-06-13 10:33:36 +02:00
parent c6e54de869
commit 03c0931190
1 changed files with 1 additions and 15 deletions

View File

@ -450,10 +450,6 @@ class ServiceViewController: UIViewController, TableModelHost {
shouldDeleteLogOnDisconnection = false
}
private func postSupportRequest() {
UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil)
}
private func reportConnectivityIssue() {
let attach = IssueReporter.Attachments(debugLog: true, profile: uncheckedProfile)
IssueReporter.shared.present(in: self, withAttachments: attach)
@ -612,8 +608,6 @@ extension ServiceViewController: UITableViewDataSource, UITableViewDelegate, Tog
case masksPrivateData
case joinCommunity
case reportIssue
}
@ -850,11 +844,6 @@ extension ServiceViewController: UITableViewDataSource, UITableViewDelegate, Tog
// feedback
case .joinCommunity:
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
cell.leftText = L10n.Organizer.Cells.JoinCommunity.caption
return cell
case .reportIssue:
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
cell.leftText = L10n.Service.Cells.ReportIssue.caption
@ -962,9 +951,6 @@ extension ServiceViewController: UITableViewDataSource, UITableViewDelegate, Tog
perform(segue: StoryboardSegue.Main.debugLogSegueIdentifier, sender: cell)
return true
case .joinCommunity:
postSupportRequest()
case .reportIssue:
reportConnectivityIssue()
@ -1099,7 +1085,7 @@ extension ServiceViewController: UITableViewDataSource, UITableViewDelegate, Tog
model.set([.vpnSurvivesSleep], in: .vpnSurvivesSleep)
model.set([.trustedPolicy], in: .trustedPolicy)
model.set([.dataCount, .debugLog, .masksPrivateData], in: .diagnostics)
model.set([.joinCommunity, .reportIssue], in: .feedback)
model.set([.reportIssue], in: .feedback)
}
trustedNetworks.delegate = self