commit d3996e7c69a5153538a0233197acf1bb5815513d
parent ece3bad25b30eeae9a76952f6486d155fb4f14a8
Author: Marc Stibane <marc@taler.net>
Date: Wed, 18 Nov 2026 07:50:24 +0100
progressToken
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/TalerWallet1/Model/Model+P2P.swift b/TalerWallet1/Model/Model+P2P.swift
@@ -276,11 +276,13 @@ extension WalletModel {
fileprivate struct ConfirmPeerPullDebit: WalletBackendFormattedRequest {
struct Response: Decodable {} // no result - getting no error back means success
var operation: String { "confirmPeerPullDebit" }
- func args() -> Args { Args(transactionId: transactionId) }
+ func args() -> Args { Args(transactionId: transactionId,
+ progressToken: operation + transactionId) }
var transactionId: String
struct Args: Encodable {
var transactionId: String
+ var progressToken: String?
}
}
extension WalletModel {
@@ -289,6 +291,9 @@ extension WalletModel {
async throws -> Decodable {
let request = ConfirmPeerPullDebit(transactionId: transactionId)
let (response, _) = try await sendRequest(request, viewHandles: viewHandles)
+ let controller = Controller.shared
+ controller.progressOperation = request.operation
+ controller.progressToken = request.operation + transactionId
return response
}
} // confirmPeerPullDebit