Skip to content

Commit 376d35d

Browse files
KM-16153: hardcode multi dip token disabled
feature flag check was failing while airplane mode is on, so don't check flag entirely for this feature since it's been "off" for who knows how long.
1 parent fa32a7a commit 376d35d

4 files changed

Lines changed: 1 addition & 12 deletions

File tree

LocalPackages/PIALibrary/Sources/PIALibrary/FeatureFlags/FeatureFlags.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import Foundation
3333
/// See ``FeatureFlagHolder``.
3434
public enum FeatureFlag: String, CaseIterable, Sendable {
3535
case forceUpdate = "force_update"
36-
case disableMultiDipTokens = "disable-multi-dip-tokens"
3736
case checkDipExpirationRequest = "check-dip-expiration-request"
3837
case disableSystemRatingDialog = "disable-system-rating-dialogue"
3938
case showLeakProtection = "ios_custom_leak_protection_v2"

PIA VPN/Bootstrapper.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ final class Bootstrapper {
154154

155155
Client.providers.accountProvider.featureFlags { _ in
156156
AppPreferences.shared.checksDipExpirationRequest = Client.configuration.featureFlags[.checkDipExpirationRequest]
157-
AppPreferences.shared.disablesMultiDipTokens = Client.configuration.featureFlags[.disableMultiDipTokens]
158157

159158
/// Updates the feature flags values to the ones set on the server only on Release builds.
160159
/// (like Leak protection feature)

PIA VPN/Global/AppPreferences.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -524,15 +524,6 @@ final class AppPreferences {
524524
}
525525
}
526526

527-
var disablesMultiDipTokens: Bool {
528-
get {
529-
return defaults.bool(forKey: Entries.disablesMultiDipTokens)
530-
}
531-
set {
532-
defaults.set(newValue, forKey: Entries.disablesMultiDipTokens)
533-
}
534-
}
535-
536527
var showLeakProtection: Bool {
537528
get {
538529
return defaults.bool(forKey: Entries.showLeakProtection)

PIA VPN/UI/Menu/DedicatedIpViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ extension DedicatedIpViewController: UITableViewDelegate, UITableViewDataSource
290290

291291
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
292292
if Sections.header == section {
293-
if !data.isEmpty && AppPreferences.shared.disablesMultiDipTokens {
293+
if !data.isEmpty {
294294
let headerView = tableView.dequeueReusableCell(withIdentifier: Cells.activeHeader) as! ActiveDedicatedIpHeaderViewCell
295295
headerView.setup()
296296
return headerView

0 commit comments

Comments
 (0)