taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 5d28cd458b0b1a7c320bb15474ee9e4b4b3d414f
parent 2d8ca75fc54c536092daf766d400af0a3400c3d3
Author: Marc Stibane <marc@taler.net>
Date:   Sun,  7 Jan 2024 14:56:04 +0100

payment_received only for withdrawals

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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: