gnunet-svn
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]