about summary refs log tree commit diff
path: root/src/screens/Messages/List/ChatListItem.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/Messages/List/ChatListItem.tsx')
-rw-r--r--src/screens/Messages/List/ChatListItem.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/screens/Messages/List/ChatListItem.tsx b/src/screens/Messages/List/ChatListItem.tsx
index 682a2197e..ce0c7eee8 100644
--- a/src/screens/Messages/List/ChatListItem.tsx
+++ b/src/screens/Messages/List/ChatListItem.tsx
@@ -13,6 +13,7 @@ import {isNative} from '#/platform/detection'
 import {useProfileShadow} from '#/state/cache/profile-shadow'
 import {useModerationOpts} from '#/state/preferences/moderation-opts'
 import {useSession} from '#/state/session'
+import {useHaptics} from 'lib/haptics'
 import {logEvent} from 'lib/statsig/statsig'
 import {sanitizeDisplayName} from 'lib/strings/display-names'
 import {TimeElapsed} from '#/view/com/util/TimeElapsed'
@@ -70,6 +71,7 @@ function ChatListItemReady({
     () => moderateProfile(profile, moderationOpts),
     [profile, moderationOpts],
   )
+  const playHaptic = useHaptics()
 
   const blockInfo = React.useMemo(() => {
     const modui = moderation.ui('profileView')
@@ -134,8 +136,9 @@ function ChatListItemReady({
   )
 
   const onLongPress = useCallback(() => {
+    playHaptic()
     menuControl.open()
-  }, [menuControl])
+  }, [playHaptic, menuControl])
 
   return (
     <View
@@ -162,7 +165,7 @@ function ChatListItemReady({
             : undefined
         }
         onPress={onPress}
-        onLongPress={isNative ? menuControl.open : undefined}
+        onLongPress={isNative ? onLongPress : undefined}
         onAccessibilityAction={onLongPress}
         style={[
           web({