remove: `isAndroidTablet`
This commit is contained in:
parent
d9ac30fae0
commit
d6e9c48fd4
|
@ -9,7 +9,7 @@ import { Q } from '@nozbe/watermelondb';
|
||||||
import { TouchableWithoutFeedback } from 'react-native-gesture-handler';
|
import { TouchableWithoutFeedback } from 'react-native-gesture-handler';
|
||||||
|
|
||||||
import { generateTriggerId } from '../../lib/methods/actions';
|
import { generateTriggerId } from '../../lib/methods/actions';
|
||||||
import TextInput, { IThemedTextInput } from '../../presentation/TextInput';
|
import TextInput from '../../presentation/TextInput';
|
||||||
import { userTyping as userTypingAction } from '../../actions/room';
|
import { userTyping as userTypingAction } from '../../actions/room';
|
||||||
import RocketChat from '../../lib/rocketchat';
|
import RocketChat from '../../lib/rocketchat';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
@ -1037,13 +1037,6 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
||||||
tmid
|
tmid
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const isAndroidTablet: Partial<IThemedTextInput> =
|
|
||||||
isTablet && isAndroid
|
|
||||||
? {
|
|
||||||
onSubmitEditing: this.submit
|
|
||||||
}
|
|
||||||
: {};
|
|
||||||
|
|
||||||
const recordAudio =
|
const recordAudio =
|
||||||
showSend || !Message_AudioRecorderEnabled ? null : (
|
showSend || !Message_AudioRecorderEnabled ? null : (
|
||||||
<RecordAudio
|
<RecordAudio
|
||||||
|
@ -1098,7 +1091,6 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
||||||
multiline
|
multiline
|
||||||
testID={`messagebox-input${tmid ? '-thread' : ''}`}
|
testID={`messagebox-input${tmid ? '-thread' : ''}`}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
{...isAndroidTablet}
|
|
||||||
/>
|
/>
|
||||||
<RightButtons
|
<RightButtons
|
||||||
theme={theme}
|
theme={theme}
|
||||||
|
|
Loading…
Reference in New Issue