From 6bcff8c937ccb8629ce1c8f5dfae3373675fc265 Mon Sep 17 00:00:00 2001 From: Bug Magnet Date: Thu, 5 Oct 2023 09:49:57 +0200 Subject: [PATCH] Make social media block setting conflict with custom DNS --- .../View controllers/Preferences/PreferencesViewModel.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift b/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift index fbfd5f53df2d..a429f1f36d6b 100644 --- a/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift +++ b/ios/MullvadVPN/View controllers/Preferences/PreferencesViewModel.swift @@ -139,7 +139,8 @@ struct PreferencesViewModel: Equatable { /// Precondition for enabling Custom DNS. var customDNSPrecondition: CustomDNSPrecondition { - if blockAdvertising || blockTracking || blockMalware || blockAdultContent || blockGambling { + if blockAdvertising || blockTracking || blockMalware || + blockAdultContent || blockGambling || blockSocialMedia { return .conflictsWithOtherSettings } else { let hasValidDNSDomains = customDNSDomains.contains { entry in