set prop to android and ios tablets
This commit is contained in:
parent
87e86e819e
commit
c7f5e31f94
|
@ -1204,14 +1204,13 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
||||||
tmid
|
tmid
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const isAndroidTablet: Partial<IThemedTextInput> =
|
const tabletProps: Partial<IThemedTextInput> = isTablet
|
||||||
isTablet && isAndroid
|
? {
|
||||||
? {
|
multiline: false,
|
||||||
multiline: false,
|
onSubmitEditing: this.submit,
|
||||||
onSubmitEditing: this.submit,
|
returnKeyType: 'send'
|
||||||
returnKeyType: 'send'
|
}
|
||||||
}
|
: {};
|
||||||
: {};
|
|
||||||
|
|
||||||
const recordAudio =
|
const recordAudio =
|
||||||
showSend || !Message_AudioRecorderEnabled ? null : (
|
showSend || !Message_AudioRecorderEnabled ? null : (
|
||||||
|
@ -1264,7 +1263,7 @@ class MessageBox extends Component<IMessageBoxProps, IMessageBoxState> {
|
||||||
defaultValue=''
|
defaultValue=''
|
||||||
multiline
|
multiline
|
||||||
testID={`messagebox-input${tmid ? '-thread' : ''}`}
|
testID={`messagebox-input${tmid ? '-thread' : ''}`}
|
||||||
{...isAndroidTablet}
|
{...tabletProps}
|
||||||
/>
|
/>
|
||||||
<RightButtons
|
<RightButtons
|
||||||
showSend={showSend}
|
showSend={showSend}
|
||||||
|
|
Loading…
Reference in New Issue