aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/withdraw.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-02-19 23:34:30 +0100
committerFlorian Dold <florian@dold.me>2024-02-19 23:34:30 +0100
commita4d0ad4274c79803f75d53a3642cec163ccf4e53 (patch)
tree04f6cb183fe37dd062970c0c000fcfadf5a974b3 /packages/taler-wallet-core/src/withdraw.ts
parent862ac9a16aa891c26355f9ad5858283c3aa029d6 (diff)
downloadwallet-core-a4d0ad4274c79803f75d53a3642cec163ccf4e53.tar.xz
wallet-core: emit missing balance-change notification, test for it
Diffstat (limited to 'packages/taler-wallet-core/src/withdraw.ts')
-rw-r--r--packages/taler-wallet-core/src/withdraw.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/withdraw.ts b/packages/taler-wallet-core/src/withdraw.ts
index bfcf23588..2e05f1221 100644
--- a/packages/taler-wallet-core/src/withdraw.ts
+++ b/packages/taler-wallet-core/src/withdraw.ts
@@ -2644,6 +2644,11 @@ export async function acceptWithdrawalFromUri(
const ctx = new WithdrawTransactionContext(ws, withdrawalGroupId);
+ ws.notify({
+ type: NotificationType.BalanceChange,
+ hintTransactionId: ctx.transactionId,
+ });
+
await waitWithdrawalRegistered(ws, ctx);
ws.taskScheduler.startShepherdTask(ctx.taskId);
@@ -2896,6 +2901,11 @@ export async function createManualWithdrawal(
},
);
+ ws.notify({
+ type: NotificationType.BalanceChange,
+ hintTransactionId: ctx.transactionId,
+ });
+
ws.taskScheduler.startShepherdTask(ctx.taskId);
return {