commit 4ee74fe09ddd29c234d238729ea1d7b7ca73ec30 parent f29fb2ee56e616cc1c728497691d5ca21145b557 Author: Marc Stibane <marc@taler.net> Date: Wed, 19 Aug 2026 06:45:52 +0200 AI: accept missing ToS Diffstat:
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift b/TalerWallet1/Views/Actions/Peer2peer/RequestPayment.swift @@ -311,7 +311,8 @@ struct RequestPaymentContent: View { NavLink($buttonSelected) { inputDestination } NavLink($shortcutSelected) { shortcutDestination } } - let tosAccepted = (exchange?.tosStatus == .accepted) ?? false + let tosAccepted = exchange?.tosStatus == .accepted + || exchange?.tosStatus == .missingTos // no ToS to accept if tosAccepted { let a11yLabel = String(localized: "Amount to request:", comment: "a11y, no abbreviations") let amountLabel = minimalistic ? String(localized: "Amount:") diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift @@ -70,6 +70,7 @@ struct P2pReceiveURIView: View { let scope = peerPushCreditResponse.scopeInfo let balance = controller.balance(for: scope) let tosAccepted = exchange?.tosStatus == .accepted + || exchange?.tosStatus == .missingTos // no ToS to accept if !tosAccepted { ToSButtonView(stack: stack.push(), exchangeBaseUrl: peerPushCreditResponse.exchangeBaseUrl, diff --git a/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift b/TalerWallet1/Views/Sheets/WithdrawBankIntegrated/WithdrawAcceptView.swift @@ -61,6 +61,7 @@ struct WithdrawAcceptView: View { if let exchange2 = exchange { // there should always be an exchange... VStack { let tosAccepted = exchange2.tosStatus == .accepted + || exchange2.tosStatus == .missingTos // no ToS to accept if !tosAccepted { ToSButtonView(stack: stack.push(), exchangeBaseUrl: exchange2.exchangeBaseUrl,