From da464f1fe8a225c8decdfcbfa8871bd7827c0575 Mon Sep 17 00:00:00 2001 From: Kyle Hickinson Date: Tue, 6 Dec 2022 11:25:51 -0500 Subject: [PATCH] Fix #6562: Actually record p3a answer when cookie list is toggled --- Client/WebFilters/FilterListResourceDownloader.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/WebFilters/FilterListResourceDownloader.swift b/Client/WebFilters/FilterListResourceDownloader.swift index 259d8ab5070..8f616035434 100644 --- a/Client/WebFilters/FilterListResourceDownloader.swift +++ b/Client/WebFilters/FilterListResourceDownloader.swift @@ -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`