allow send empty message with image

This commit is contained in:
2023-11-08 18:37:39 +08:00
parent 8b6ceb36f1
commit b107aca639

View File

@@ -220,7 +220,7 @@ export default function ChatBOX(props: {
// when user click the "send" button or ctrl+Enter in the textarea
const send = async (msg = "", call_complete = true) => {
const inputMsg = msg.trim();
if (!inputMsg) {
if (!inputMsg && images.length === 0) {
console.log("empty message");
return;
}