refactor: check if the message block is purely blank (#651)

This commit is contained in:
ayangweb
2025-06-10 17:22:13 +08:00
committed by GitHub
parent 65451fc63e
commit 7a2dde7448

View File

@@ -63,7 +63,7 @@ export const useStreamChat = (options: Options) => {
}
// If the chunk data does not contain a message_chunk, we ignore it
if (chunkData.message_chunk) {
if (chunkData.message_chunk.trim()) {
setVisible(true);
}