gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-ios] 44/69: payment_received only for withdrawals


From: gnunet
Subject: [taler-taler-ios] 44/69: payment_received only for withdrawals
Date: Fri, 19 Jan 2024 09:02:17 +0100

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

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 5d28cd458b0b1a7c320bb15474ee9e4b4b3d414f
Author: Marc Stibane <marc@taler.net>
AuthorDate: Sun Jan 7 14:56:04 2024 +0100

    payment_received only for withdrawals
---
 TalerWallet1/Backend/WalletCore.swift | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift 
b/TalerWallet1/Backend/WalletCore.swift
index 67e6e96..9cd2a48 100644
--- a/TalerWallet1/Backend/WalletCore.swift
+++ b/TalerWallet1/Backend/WalletCore.swift
@@ -196,7 +196,11 @@ extension WalletCore {
                     switch decoded.newTxState.major {
                         case .done:
                             logger.info("Done: \(decoded.transactionId, 
privacy: .private(mask: .hash))")
-                            Controller.shared.playSound(type.isIncoming ? 2 : 
1)
+                            if type.isWithdrawal {
+                                Controller.shared.playSound(2)  // 
payment_received only for withdrawals
+                            } else if !type.isIncoming {
+                                Controller.shared.playSound(1)  // 
payment_sent for all outgoing tx
+                            }
                             postNotification(.TransactionDone, userInfo: 
[TRANSACTIONTRANSITION: decoded])
                             return
                         case .aborting:

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