mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 22:39:36 +08:00
fix: couldn't edit text when sent file-only message (#6930)
This commit is contained in:
parent
c91c7567f6
commit
a83e40389f
@ -129,7 +129,8 @@ export function getUserMessage({
|
|||||||
const blocks: MessageBlock[] = []
|
const blocks: MessageBlock[] = []
|
||||||
const blockIds: string[] = []
|
const blockIds: string[] = []
|
||||||
|
|
||||||
if (content?.trim()) {
|
// 内容为空也应该创建空文本块
|
||||||
|
if (content !== undefined) {
|
||||||
// Pass messageId when creating blocks
|
// Pass messageId when creating blocks
|
||||||
const textBlock = createMainTextBlock(messageId, content, {
|
const textBlock = createMainTextBlock(messageId, content, {
|
||||||
status: MessageBlockStatus.SUCCESS,
|
status: MessageBlockStatus.SUCCESS,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user