taler-ios

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

commit ada68e58768d517f52c14aef6cc2509c49af5df8
parent 92030e5e072e07081c0baa810acda6ba3a0f10d7
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 10 Oct 2026 20:12:57 +0200

AI: cancellation handling

Diffstat:
MTalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawUriScan.swift | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawUriScan.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawUriScan.swift @@ -73,9 +73,12 @@ struct WithdrawUriScan: View { if amountLastChecked != amount { amountLastChecked = amount + // viewHandles: the next digit's call has the same progressToken (baseUrl), so wallet-core + // cancels this one with WALLET_CORE_REQUEST_CANCELLED - not an error to show the user if let details = try? await model.getWithdrawalDetailsForAmount(amount, baseUrl: exchange.exchangeBaseUrl, - scope: nil) { // TODO: scope + scope: nil, // TODO: scope + viewHandles: true) { let fee = try? details.amountRaw - details.amountEffective let feeStr = fee?.formatted(currencyInfo, isNegative: true) ?? ("0", "0") symLog.log("Fee = \(feeStr.0)")