refactor(chat): remove legacy unlock response fields

This commit is contained in:
2026-07-15 15:06:09 +08:00
parent 684ae4bf5d
commit 078774f9b9
5 changed files with 116 additions and 62 deletions
@@ -442,7 +442,7 @@ describe("chat unlock flow", () => {
response: makeUnlockPrivateResponse({
unlocked: false,
content: "",
reason: "insufficient_balance",
reason: "insufficient_credits",
creditBalance: 3,
creditsCharged: 0,
requiredCredits: 10,
@@ -472,7 +472,7 @@ describe("chat unlock flow", () => {
displayMessageId: "msg-voice-locked",
messageId: "msg-voice-locked",
kind: "voice",
reason: "insufficient_balance",
reason: "insufficient_credits",
creditBalance: 3,
requiredCredits: 10,
shortfallCredits: 7,