Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #6562: Actually record p3a answer when cookie list is toggled #6564

Merged
merged 1 commit into from
Dec 6, 2022
Merged
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
2 changes: 1 addition & 1 deletion Client/WebFilters/FilterListResourceDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ public class FilterListResourceDownloader: ObservableObject {
@discardableResult
public func enableFilterList(for componentID: String, isEnabled: Bool) -> Bool {
// Enable the setting
defer { self.recordP3ACookieListEnabled() }
if let index = filterLists.firstIndex(where: { $0.componentId == componentID }) {
filterLists[index].isEnabled = isEnabled
return true
} else {
return false
}
self.recordP3ACookieListEnabled()
}

/// Tells us if the filter list is enabled for the given `componentID`
Expand Down