[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.
- [taler-taler-ios] 41/69: AppIcon blue, (continued)
- [taler-taler-ios] 41/69: AppIcon blue, gnunet, 2024/01/19
- [taler-taler-ios] 38/69: remove, gnunet, 2024/01/19
- [taler-taler-ios] 39/69: Bump version to 0.9.3 (34), gnunet, 2024/01/19
- [taler-taler-ios] 35/69: Markdown for ToS, gnunet, 2024/01/19
- [taler-taler-ios] 37/69: dbg+cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 53/69: Summary no longer twice, gnunet, 2024/01/19
- [taler-taler-ios] 34/69: tintcolor (blue) for links, gnunet, 2024/01/19
- [taler-taler-ios] 57/69: use cent initializer, gnunet, 2024/01/19
- [taler-taler-ios] 64/69: show minor in tx details, gnunet, 2024/01/19
- [taler-taler-ios] 47/69: single routine for rendering amounts, gnunet, 2024/01/19
- [taler-taler-ios] 44/69: payment_received only for withdrawals,
gnunet <=