diff --git a/app/client/web/src/conversation/Conversation.tsx b/app/client/web/src/conversation/Conversation.tsx index 9f3f8b6d..10d27e12 100644 --- a/app/client/web/src/conversation/Conversation.tsx +++ b/app/client/web/src/conversation/Conversation.tsx @@ -36,6 +36,7 @@ export function Conversation() { const attachAudio = useRef({ click: ()=>{} } as HTMLInputElement); const attachBinary = useRef({ click: ()=>{} } as HTMLInputElement); const { width, height, ref } = useResizeDetector(); + const input = useRef(); const addImage = (image: File | undefined) => { if (image) { @@ -117,6 +118,10 @@ export function Conversation() { } } + useEffect(() => { + input.current.focus(); + }, [sending]); + const topics = state.topics.map((topic, idx) => { const { host } = state; const card = state.cards.get(topic.guid) || null; @@ -216,7 +221,7 @@ export function Conversation() {
{ media }
-