Skip to content

Commit

Permalink
Add haptic feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac committed Jan 15, 2024
1 parent 74afa74 commit e369212
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e369212

Please sign in to comment.