taler-ios

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

commit 32d6729e955835f9d40ce076f1e6cbbb04ffbb33
parent 484288133ba22ac2cb28554e7b6d8c8181ca8005
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 30 Jun 2026 07:51:45 +0200

don't skip, but do load the next getTransactionById if there was an error

Diffstat:
MTalerWallet1/Backend/WalletCore.swift | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Backend/WalletCore.swift b/TalerWallet1/Backend/WalletCore.swift @@ -212,10 +212,11 @@ extension WalletCore { if let errorInfo = decoded.errorInfo { // reload pending transaction list to add error badge postNotification(.TransactionError, userInfo: [NOTIFICATIONERROR: WalletBackendError.walletCoreError(errorInfo)]) - } - guard decoded.newTxState != decoded.oldTxState else { - logger.info("handleStateTransition: No State change: \(decoded.transactionId, privacy: .private(mask: .hash))") - return + } else { + guard decoded.newTxState != decoded.oldTxState else { + logger.info("handleStateTransition: No State change: \(decoded.transactionId, privacy: .private(mask: .hash))") + return + } } let components = decoded.transactionId.components(separatedBy: ":")