diff options
author | Bas van den Wollenberg <hi@bas.sh> | 2024-11-23 21:11:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-23 20:11:13 +0000 |
commit | b892d8be0896a11925a8b5641fe2ee3fd8474b8d (patch) | |
tree | 2db8f140b88300df6bb31fcb56ca21a02a4cf294 /src/screens/Messages/components/MessageInput.web.tsx | |
parent | 9663b3e855acfc5a4d3e61211eac253605147e93 (diff) | |
download | voidsky-b892d8be0896a11925a8b5641fe2ee3fd8474b8d.tar.zst |
Fix media query used to prevent enter sending DM on mobile web (#6669)
Diffstat (limited to 'src/screens/Messages/components/MessageInput.web.tsx')
-rw-r--r-- | src/screens/Messages/components/MessageInput.web.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screens/Messages/components/MessageInput.web.tsx b/src/screens/Messages/components/MessageInput.web.tsx index b15cd2492..72e0382a9 100644 --- a/src/screens/Messages/components/MessageInput.web.tsx +++ b/src/screens/Messages/components/MessageInput.web.tsx @@ -38,7 +38,7 @@ export function MessageInput({ children?: React.ReactNode openEmojiPicker?: (pos: EmojiPickerPosition) => void }) { - const {isTabletOrDesktop} = useWebMediaQueries() + const {isMobile} = useWebMediaQueries() const {_} = useLingui() const t = useTheme() const {getDraft, clearDraft} = useMessageDraft() @@ -212,7 +212,7 @@ export function MessageInput({ onChange={onChange} // On mobile web phones, we want to keep the same behavior as the native app. Do not submit the message // in these cases. - onKeyDown={isTouchDevice && isTabletOrDesktop ? undefined : onKeyDown} + onKeyDown={isTouchDevice && isMobile ? undefined : onKeyDown} /> <Pressable accessibilityRole="button" |