aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index a6eecb8a9..432a3e989 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -46,6 +46,7 @@ import {
abortFailedPayment,
preparePay,
confirmPay,
+ processDownloadProposal,
} from "./wallet-impl/pay";
import {
@@ -227,12 +228,17 @@ export class Wallet {
case "withdraw":
await processWithdrawSession(this.ws, pending.withdrawSessionId);
break;
- case "proposal":
+ case "proposal-choice":
// Nothing to do, user needs to accept/reject
break;
+ case "proposal-download":
+ await processDownloadProposal(this.ws, pending.proposalId);
+ break;
case "tip":
await processTip(this.ws, pending.tipId);
break;
+ case "pay":
+ break;
default:
assertUnreachable(pending);
}