Fix hide auto fill suggestions on msg send

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-13 19:38:11 +05:30
parent 3c2058f0e1
commit 46dd50a744

View file

@ -176,6 +176,7 @@ function RoomViewInput({
}, [roomId]); }, [roomId]);
const sendMessage = async () => { const sendMessage = async () => {
requestAnimationFrame(() => deactivateCmdAndEmit());
const msgBody = textAreaRef.current.value; const msgBody = textAreaRef.current.value;
if (roomsInput.isSending(roomId)) return; if (roomsInput.isSending(roomId)) return;
if (msgBody.trim() === '' && attachment === null) return; if (msgBody.trim() === '' && attachment === null) return;