my fork of the bluesky client

Fix media query used to prevent enter sending DM on mobile web (#6669)

authored by bas.sh and committed by

GitHub b892d8be 9663b3e8

+2 -2
+2 -2
src/screens/Messages/components/MessageInput.web.tsx
··· 38 38 children?: React.ReactNode 39 39 openEmojiPicker?: (pos: EmojiPickerPosition) => void 40 40 }) { 41 - const {isTabletOrDesktop} = useWebMediaQueries() 41 + const {isMobile} = useWebMediaQueries() 42 42 const {_} = useLingui() 43 43 const t = useTheme() 44 44 const {getDraft, clearDraft} = useMessageDraft() ··· 212 212 onChange={onChange} 213 213 // On mobile web phones, we want to keep the same behavior as the native app. Do not submit the message 214 214 // in these cases. 215 - onKeyDown={isTouchDevice && isTabletOrDesktop ? undefined : onKeyDown} 215 + onKeyDown={isTouchDevice && isMobile ? undefined : onKeyDown} 216 216 /> 217 217 <Pressable 218 218 accessibilityRole="button"