commit d5b566919f53a7f44f7c96acb1abff5b7bc5e121
parent 3e5bc198f94c5fce2dfe63db7b26d54cd9fa56ec
Author: Marc Stibane <marc@taler.net>
Date: Sun, 23 Aug 2026 19:21:59 +0200
No progress for preparePayForUri - always returns immediately
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/TalerWallet1/Model/Model+Payment.swift b/TalerWallet1/Model/Model+Payment.swift
@@ -343,12 +343,11 @@ struct PreparePayResult2: Codable {
fileprivate struct PreparePayForUri: WalletBackendFormattedRequest {
typealias Response = PreparePayResult2
var operation: String { "preparePayForUriV2" }
- func args() -> Args { Args(talerPayUri: talerPayUri, progressToken: talerPayUri ) }
+ func args() -> Args { Args(talerPayUri: talerPayUri) } // No progressToken!
var talerPayUri: String
struct Args: Encodable {
var talerPayUri: String
- var progressToken: String
}
}
@@ -674,9 +673,6 @@ extension WalletModel {
nonisolated func preparePayForUri(_ talerPayUri: String, viewHandles: Bool = false)
async throws -> PreparePayResult2 {
let request = PreparePayForUri(talerPayUri: talerPayUri)
- let controller = Controller.shared
- controller.progressOperation = request.operation
- controller.progressToken = talerPayUri
let response = try await sendRequest(request, viewHandles: viewHandles)
return response
}