diff options
author | Florian Dold <florian@dold.me> | 2023-12-13 08:52:17 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-13 08:52:17 +0100 |
commit | df67d5dbb205665b57c8f860d79be16c94ba5a68 (patch) | |
tree | e734dedc598eef18eb98716c579df742c1177ecd /packages/taler-wallet-core/src/operations/pay-merchant.ts | |
parent | 80c61a93e6c33d771cec95a9acfde43ce7148935 (diff) | |
download | wallet-core-df67d5dbb205665b57c8f860d79be16c94ba5a68.tar.xz |
wallet-core: add hint about responsible transaction ID in balance change notification
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-merchant.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/pay-merchant.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-merchant.ts b/packages/taler-wallet-core/src/operations/pay-merchant.ts index b3ea5b3fe..2d364a866 100644 --- a/packages/taler-wallet-core/src/operations/pay-merchant.ts +++ b/packages/taler-wallet-core/src/operations/pay-merchant.ts @@ -933,7 +933,13 @@ async function handleInsufficientFunds( }); }); - ws.notify({ type: NotificationType.BalanceChange }); + ws.notify({ + type: NotificationType.BalanceChange, + hintTransactionId: constructTransactionIdentifier({ + tag: TransactionType.Payment, + proposalId, + }), + }); } async function unblockBackup( @@ -1482,7 +1488,10 @@ export async function confirmPay( }); notifyTransition(ws, transactionId, transitionInfo); - ws.notify({ type: NotificationType.BalanceChange }); + ws.notify({ + type: NotificationType.BalanceChange, + hintTransactionId: transactionId, + }); return runPayForConfirmPay(ws, proposalId); } |