[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taler-ios] 23/69: aborting Notification
From: |
gnunet |
Subject: |
[taler-taler-ios] 23/69: aborting Notification |
Date: |
Fri, 19 Jan 2024 09:01:56 +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 ca1e5b2bbc6f617a631c7c819ff9ec2ce89514cd
Author: Marc Stibane <marc@taler.net>
AuthorDate: Thu Jan 4 17:26:48 2024 +0100
aborting Notification
---
TalerWallet1/Backend/WalletCore.swift | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/TalerWallet1/Backend/WalletCore.swift
b/TalerWallet1/Backend/WalletCore.swift
index 76ba1ab..b40519d 100644
--- 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)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-taler-ios] 14/69: remove Apple Sounds, (continued)
- [taler-taler-ios] 14/69: remove Apple Sounds, gnunet, 2024/01/19
- [taler-taler-ios] 21/69: TransactionDone popToRootView, gnunet, 2024/01/19
- [taler-taler-ios] 09/69: API 2:0:1, gnunet, 2024/01/19
- [taler-taler-ios] 15/69: hapticFeedback, gnunet, 2024/01/19
- [taler-taler-ios] 08/69: fixes, gnunet, 2024/01/19
- [taler-taler-ios] 11/69: Landscape, gnunet, 2024/01/19
- [taler-taler-ios] 17/69: Summary in ThreeAmountsV, gnunet, 2024/01/19
- [taler-taler-ios] 50/69: txStates, gnunet, 2024/01/19
- [taler-taler-ios] 24/69: dbg+cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 13/69: definitions, gnunet, 2024/01/19
- [taler-taler-ios] 23/69: aborting Notification,
gnunet <=
- [taler-taler-ios] 28/69: AccountRestriction, gnunet, 2024/01/19
- [taler-taler-ios] 60/69: P2P Expiration Timestamp, gnunet, 2024/01/19
- [taler-taler-ios] 26/69: Layout transactions, gnunet, 2024/01/19
- [taler-taler-ios] 51/69: cleanup, gnunet, 2024/01/19
- [taler-taler-ios] 67/69: Bump version to 0.9.4 (0), gnunet, 2024/01/19
- [taler-taler-ios] 68/69: lowercased(), gnunet, 2024/01/19
- [taler-taler-ios] 54/69: Keyboard needs more time, gnunet, 2024/01/19
- [taler-taler-ios] 49/69: accessibilityDate, gnunet, 2024/01/19
- [taler-taler-ios] 46/69: AccountRestriction, gnunet, 2024/01/19
- [taler-taler-ios] 59/69: bugfix, gnunet, 2024/01/19