fix(chat): preserve locked message content on unlock

This commit is contained in:
2026-07-01 10:47:55 +08:00
parent 9c45c7eb69
commit 617f1d4777
8 changed files with 130 additions and 29 deletions
-6
View File
@@ -18,14 +18,8 @@ export function applySingleUnlockOutput(
return messages.map((message) => {
if (!shouldApplySingleUnlock(message, output.messageId)) return message;
const nextContent =
output.response.content.length > 0
? output.response.content
: message.content;
return {
...message,
content: nextContent,
locked: output.response.lockDetail.locked,
lockReason: output.response.lockDetail.reason,
imagePaywalled: message.imageUrl