From e3692128cf7613f6080e304e290b3e93bd1cd4d0 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Mon, 15 Jan 2024 22:55:44 +0400 Subject: [PATCH] Add haptic feedback --- .../SelectivePrivacySettingsController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift b/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift index 54319dab06..2d15ce97a3 100644 --- a/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift +++ b/submodules/SettingsUI/Sources/Privacy and Security/SelectivePrivacySettingsController.swift @@ -1177,6 +1177,7 @@ func selectivePrivacySettingsController( return state.withUpdatedHideReadTimeEnabled(value) } }, updateHideReadTimeDisabled: { + HapticFeedback().error() let presentationData = context.sharedContext.currentPresentationData.with { $0 } presentControllerImpl?(UndoOverlayController(presentationData: presentationData, content: .info(title: nil, text: presentationData.strings.PrivacyInfo_ShowReadTime_AlwaysToast_Text, timeout: nil, customUndoText: nil), elevatedLayout: false, animateInAsReplacement: false, action: { _ in return false }), nil) }, openPremiumIntro: {