emptyInput
This commit is contained in:
parent
7a4699d6cd
commit
012d101dbe
|
@ -143,7 +143,8 @@ export const ComposerInput = memo(
|
|||
}));
|
||||
|
||||
const setInput: TSetInput = (text, selection) => {
|
||||
textRef.current = text;
|
||||
const message = text.trim();
|
||||
textRef.current = message;
|
||||
if (inputRef.current) {
|
||||
inputRef.current.setNativeProps({ text });
|
||||
}
|
||||
|
@ -154,7 +155,7 @@ export const ComposerInput = memo(
|
|||
selectionRef.current = selection;
|
||||
}, 50);
|
||||
}
|
||||
setMicOrSend(text.length === 0 ? 'mic' : 'send');
|
||||
setMicOrSend(message.length === 0 ? 'mic' : 'send');
|
||||
};
|
||||
|
||||
const focus = () => {
|
||||
|
|
Loading…
Reference in New Issue