adjusting keyboard input on thread

This commit is contained in:
Roland Osborne 2025-01-10 12:23:39 -08:00
parent 7f14abbc88
commit 3b9c1abab4
2 changed files with 2 additions and 1 deletions

View File

@ -277,6 +277,7 @@ export function Conversation({close, openDetails, wide}: {close: ()=>void, openD
</ScrollView>
</Animated.View>
<TextInput multiline={true} mode="outlined" style={{ ...styles.message, fontSize: state.textSize }}
blurOnSubmit={true} onSubmitEditing={sendMessage} returnKeyType="send"
textColor={state.textColorSet ? state.textColor : undefined} outlineColor="transparent" activeOutlineColor="transparent"spellcheck={false}
autoComplete="off" autoCapitalize="none" autoCorrect={false} placeholder={state.strings.newMessage} placeholderTextColor={state.textColorSet ? state.textColor : undefined}
cursorColor={state.textColorSet ? state.textColor : undefined} value={state.message} onChangeText={value => actions.setMessage(value)} />

View File

@ -23,7 +23,7 @@ export function useSession() {
if (status === 'disconnected') {
disconnecting.current = setTimeout(() => {
updateState({ disconnected: true });
}, 2000);
}, 4000);
} if (status === 'connected') {
clearTimeout(disconnecting.current);
updateState({ disconnected: false });