commit ca1e5b2bbc6f617a631c7c819ff9ec2ce89514cd
parent 2a34df64c671bfdc5225d10ad2c6f197ad60ad74
Author: Marc Stibane <marc@taler.net>
Date: Thu, 4 Jan 2024 17:26:48 +0100
aborting Notification
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift
@@ -199,6 +199,17 @@ extension WalletCore {
Controller.shared.playSound(type.isIncoming ? 2 : 1)
postNotification(.TransactionDone, userInfo: [TRANSACTIONTRANSITION: decoded])
return
+ case .aborting:
+ if let newMinor = decoded.newTxState.minor {
+ if newMinor == .refreshExpired {
+ logger.warning("Expired: \(decoded.transactionId, privacy: .private(mask: .hash))")
+ Controller.shared.playSound(0)
+ postNotification(.TransactionExpired, userInfo: [TRANSACTIONTRANSITION: decoded])
+ return
+ }
+ }
+ logger.warning("Unknow aborting: \(decoded.transactionId, privacy: .private(mask: .hash))")
+ postNotification(.TransactionStateTransition, userInfo: [TRANSACTIONTRANSITION: decoded])
case .expired:
logger.warning("Expired: \(decoded.transactionId, privacy: .private(mask: .hash))")
Controller.shared.playSound(0)