aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/tip.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-28 10:49:31 +0200
committerFlorian Dold <florian@dold.me>2023-06-28 10:49:41 +0200
commit35ae9f2c22adcabd28747a1f2c4f21f51c732f42 (patch)
tree00f906371bb64ab6479d2fb203bf188e5da46b49 /packages/taler-wallet-core/src/operations/tip.ts
parent97a9e92d8b104a94c376ae4fad8c5c811f5ef7e1 (diff)
wallet-core: emit balance-change notifications, do less implicit background work
Diffstat (limited to 'packages/taler-wallet-core/src/operations/tip.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/tip.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/operations/tip.ts b/packages/taler-wallet-core/src/operations/tip.ts
index 1b40e36f1..18ef03c51 100644
--- a/packages/taler-wallet-core/src/operations/tip.ts
+++ b/packages/taler-wallet-core/src/operations/tip.ts
@@ -30,6 +30,7 @@ import {
getRandomBytes,
j2s,
Logger,
+ NotificationType,
parseTipUri,
PrepareTipResult,
TalerErrorCode,
@@ -57,7 +58,13 @@ import {
readSuccessResponseJsonOrThrow,
} from "@gnu-taler/taler-util/http";
import { checkDbInvariant, checkLogicInvariant } from "../util/invariants.js";
-import { constructTaskIdentifier, makeCoinAvailable, makeCoinsVisible, OperationAttemptResult, OperationAttemptResultType } from "./common.js";
+import {
+ constructTaskIdentifier,
+ makeCoinAvailable,
+ makeCoinsVisible,
+ OperationAttemptResult,
+ OperationAttemptResultType,
+} from "./common.js";
import { updateExchangeFromUrl } from "./exchanges.js";
import {
getCandidateWithdrawalDenoms,
@@ -421,6 +428,7 @@ export async function processTip(
return { oldTxState, newTxState };
});
notifyTransition(ws, transactionId, transitionInfo);
+ ws.notify({ type: NotificationType.BalanceChange });
return {
type: OperationAttemptResultType.Finished,