From 0ea2873942116a55c7633da9454f88d5a33400f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Mon, 20 Jun 2022 14:37:50 +0200 Subject: [PATCH] Remove apparently unneeded fix to improve the experience by not changing the keyboards (#6409) --- .../post_draft/post_input/post_input.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/app/components/post_draft/post_input/post_input.tsx b/app/components/post_draft/post_input/post_input.tsx index d37136211..47afe09b2 100644 --- a/app/components/post_draft/post_input/post_input.tsx +++ b/app/components/post_draft/post_input/post_input.tsx @@ -17,7 +17,6 @@ import {Events, Screens} from '@constants'; import {useServerUrl} from '@context/server'; import {useTheme} from '@context/theme'; import {useIsTablet} from '@hooks/device'; -import useDidUpdate from '@hooks/did_update'; import {t} from '@i18n'; import NavigationStore from '@store/navigation_store'; import {extractFileInfo} from '@utils/file'; @@ -296,22 +295,6 @@ export default function PostInput({ }; }, [handleHardwareEnterPress]); - useDidUpdate(() => { - if (!value) { - if (Platform.OS === 'android') { - // Fixes the issue where Android predictive text would prepend suggestions to the post draft when messages - // are typed successively without blurring the input - setKeyboardType('email-address'); - } - } - }, [value]); - - useDidUpdate(() => { - if (Platform.OS === 'android' && keyboardType === 'email-address') { - setKeyboardType('default'); - } - }, [keyboardType]); - return (