taler-ios

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

commit 6d491258c4e1692108cfce4d106d7146aa31a163
parent 4e6b4f8034a680edf2e48f0dc0d510ef82e132e5
Author: Marc Stibane <marc@taler.net>
Date:   Sat, 10 Oct 2026 19:22:07 +0200

AI: cache invalidation

Diffstat:
MTalerWallet1/Views/Transactions/TransactionSummaryList.swift | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Views/Transactions/TransactionSummaryList.swift b/TalerWallet1/Views/Transactions/TransactionSummaryList.swift @@ -390,6 +390,13 @@ struct TransactionSummaryList: View { } } .navigationTitle(navTitle ?? navTitleStr) + .onDisappear { + // the cached choices (payable or not, effective amount) depend on the balance - + // drop them, so that opening this payment again asks wallet-core afresh + if controller.choicesTuple.0 == transactionId { + controller.choicesTuple = (nil, nil) + } + } .onChange(of: payNow) { payNow2 in if payNow2 { Task {