Fix hide auto fill suggestions on msg send
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
3c2058f0e1
commit
46dd50a744
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue