gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-typescript-core] branch master updated: wallet-core: fix missing


From: Admin
Subject: [taler-typescript-core] branch master updated: wallet-core: fix missing notification
Date: Tue, 03 Jun 2025 21:21:10 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository taler-typescript-core.

The following commit(s) were added to refs/heads/master by this push:
     new 84314c880 wallet-core: fix missing notification
84314c880 is described below

commit 84314c88079fc7d6005ec6153b60c8f3be4a4120
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jun 3 21:20:20 2025 +0200

    wallet-core: fix missing notification
    
    When transitioning to the kyc-auth state in a deposit transaction, we
    previously did not emit a balance change notification, because the
    balance doesn't change.  However, the balance *flags* change, so we
    still need to emit a notification.
---
 packages/taler-wallet-core/src/deposits.ts     | 2 +-
 packages/taler-wallet-core/src/transactions.ts | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/packages/taler-wallet-core/src/deposits.ts 
b/packages/taler-wallet-core/src/deposits.ts
index ebc7a0911..a62627f0e 100644
--- a/packages/taler-wallet-core/src/deposits.ts
+++ b/packages/taler-wallet-core/src/deposits.ts
@@ -1379,7 +1379,7 @@ async function transitionToKycAuthRequired(
       await tx.depositGroups.put(dg);
       await ctx.updateTransactionMeta(tx);
       const newTxState = computeDepositTransactionStatus(dg);
-      return { oldTxState, newTxState, balanceEffect: BalanceEffect.None };
+      return { oldTxState, newTxState, balanceEffect: BalanceEffect.Flags };
     },
   );
   notifyTransition(wex, ctx.transactionId, transitionInfo);
diff --git a/packages/taler-wallet-core/src/transactions.ts 
b/packages/taler-wallet-core/src/transactions.ts
index 1c1ec7051..11369be4a 100644
--- a/packages/taler-wallet-core/src/transactions.ts
+++ b/packages/taler-wallet-core/src/transactions.ts
@@ -930,10 +930,15 @@ export enum BalanceEffect {
    * change the user-visible balance.
    */
   PreserveUserVisible = 1,
+  /**
+   * The balance preserves the user-visible balance,
+   * but might affect user-visible flags.
+   */
+  Flags = 2,
   /**
    * Balance change can have any effect.
    */
-  Any = 2,
+  Any = 3,
 }
 
 /**

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]