gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-android] branch master updated (14a1026 -> da27225)


From: gnunet
Subject: [taler-taler-android] branch master updated (14a1026 -> da27225)
Date: Mon, 17 Jul 2023 15:22:21 +0200

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

torsten-grote pushed a change to branch master
in repository taler-android.

    from 14a1026  [wallet] release 0.9.3+p5
     new 9713c8f  [wallet] Implement new `balance-change' notification
     new da27225  [wallet] update transaction list when receiving 
`transaction-state-transition` notification

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 wallet/src/main/java/net/taler/wallet/MainViewModel.kt | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/wallet/src/main/java/net/taler/wallet/MainViewModel.kt 
b/wallet/src/main/java/net/taler/wallet/MainViewModel.kt
index 53db2fd..dbe4261 100644
--- a/wallet/src/main/java/net/taler/wallet/MainViewModel.kt
+++ b/wallet/src/main/java/net/taler/wallet/MainViewModel.kt
@@ -54,9 +54,7 @@ import org.json.JSONObject
 const val TAG = "taler-wallet"
 
 private val transactionNotifications = listOf(
-    "proposal-accepted",
-    "refresh-revealed",
-    "withdraw-group-finished"
+    "transaction-state-transition",
 )
 
 class MainViewModel(
@@ -103,7 +101,11 @@ class MainViewModel(
         if (payload.type == "waiting-for-retry") return // ignore ping)
         Log.i(TAG, "Received notification from wallet-core: $payload")
 
-        loadBalances()
+        // Only update balances when we're told they changed
+        if (payload.type == "balance-change") {
+            loadBalances()
+        }
+
         if (payload.type in transactionNotifications) 
viewModelScope.launch(Dispatchers.Main) {
             // TODO notification API should give us a currency to update
             // update currently selected transaction list

-- 
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]