fix: couldn't edit text when sent file-only message (#6930)

This commit is contained in:
Wang Jiyuan
2025-06-07 00:19:21 +08:00
committed by GitHub
parent c91c7567f6
commit a83e40389f
+2 -1
View File
@@ -129,7 +129,8 @@ export function getUserMessage({
const blocks: MessageBlock[] = []
const blockIds: string[] = []
if (content?.trim()) {
// 内容为空也应该创建空文本块
if (content !== undefined) {
// Pass messageId when creating blocks
const textBlock = createMainTextBlock(messageId, content, {
status: MessageBlockStatus.SUCCESS,