fix(chat): preserve private send response fields
This commit is contained in:
@@ -41,8 +41,6 @@ export function getActiveChatWebSocket(): ChatWebSocket | null {
|
||||
return activeChatWebSocket;
|
||||
}
|
||||
|
||||
// 本地游客消息额度 actor 已停用:消息数量限制统一交由后端 blocked/daily_limit 响应处理。
|
||||
|
||||
// ============================================================
|
||||
// Init 任务 2:拉 history 3 步流(fromPromise,返回最终结果)
|
||||
// ============================================================
|
||||
|
||||
@@ -89,6 +89,13 @@ export function sendResponseToUiMessage(response: ChatSendResponse): UiMessage {
|
||||
...(response.showUpgrade && response.imageUrl
|
||||
? { imagePaywalled: true }
|
||||
: {}),
|
||||
...(response.isPrivate != null ? { isPrivate: response.isPrivate } : {}),
|
||||
...(response.privateLocked != null
|
||||
? { privateLocked: response.privateLocked }
|
||||
: {}),
|
||||
...(response.privateHint != null
|
||||
? { privateHint: response.privateHint }
|
||||
: {}),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user