refactor: Update ChatView component to handle empty messages and stream URLs

This commit is contained in:
ogabrielluiz 2024-06-17 17:12:29 -03:00
commit 0b1453e56e

View file

@ -80,7 +80,7 @@ export default function ChatView({
return {
isSend: !is_ai,
message:
message === "" || !message ? EMPTY_INPUT_SEND_MESSAGE : message,
((message === "" || !message) && !stream_url) ? EMPTY_INPUT_SEND_MESSAGE : message,
sender_name,
componentId: output.id,
stream_url: stream_url,