Skip to content

Commit

Permalink
Apply the hotfix version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
miasma13 committed Nov 23, 2024
1 parent 9e63dd3 commit d12ea65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ import os.log

// Keep track of feature flag changes
subscriptionCookieManagerFeatureFlagCancellable = privacyConfigurationManager.updatesPublisher
.receive(on: DispatchQueue.main)
.sink { [weak self, weak privacyConfigurationManager] in
guard let self, let privacyConfigurationManager else { return }
guard let self, !self.appIsLaunching, let privacyConfigurationManager else { return }

let isEnabled = privacyConfigurationManager.privacyConfig.isSubfeatureEnabled(PrivacyProSubfeature.setAccessTokenCookieForSubscriptionDomains)

Task { [weak self] in
Task { @MainActor [weak self] in
if isEnabled {
self?.subscriptionCookieManager.enableSettingSubscriptionCookie()
await self?.subscriptionCookieManager.refreshSubscriptionCookie()
} else {
await self?.subscriptionCookieManager.disableSettingSubscriptionCookie()
}
Expand Down

0 comments on commit d12ea65

Please sign in to comment.