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 7e338c9e8b
commit d9cdba2317

View file

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