From 35ae9f2c22adcabd28747a1f2c4f21f51c732f42 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 28 Jun 2023 10:49:31 +0200 Subject: wallet-core: emit balance-change notifications, do less implicit background work --- packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts') diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts index c4209eb51..a070eea50 100644 --- a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts +++ b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts @@ -24,6 +24,7 @@ import { InitiatePeerPushDebitRequest, InitiatePeerPushDebitResponse, Logger, + NotificationType, RefreshReason, TalerError, TalerErrorCode, @@ -678,6 +679,7 @@ export async function initiatePeerPushDebit( }; }); notifyTransition(ws, transactionId, transitionInfo); + ws.notify({ type: NotificationType.BalanceChange }); return { contractPriv: contractKeyPair.priv, -- cgit v1.2.3