mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-23 01:50:13 +08:00
fix: couldn't edit text when sent file-only message (#6930)
This commit is contained in:
parent
7f12c2f8b8
commit
d3da4f4623
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user