taler-ios

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

commit 867d6db010c8296404c6a90dd95f04eada061b9c
parent dc692df2a23b63085572416529330f6635a6f91a
Author: Marc Stibane <marc@taler.net>
Date:   Mon, 29 Jun 2026 15:57:28 +0200

P2pShortInfo fields are optional

Diffstat:
MTalerWallet1/Model/Transaction.swift | 4++--
MTalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift | 2+-
MTalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Model/Transaction.swift b/TalerWallet1/Model/Transaction.swift @@ -564,8 +564,8 @@ struct RefreshTransaction : Sendable { } // MARK: - P2P struct P2pShortInfo: Codable, Sendable { - var summary: String - var expiration: Timestamp + var summary: String? + var expiration: Timestamp? var iconId: String? } struct P2PTransactionDetails: Codable, Sendable { diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pPayURIView.swift @@ -113,7 +113,7 @@ struct PeerPullDebitView: View { let effective: Amount let isDone: Bool let scope: ScopeInfo? - let summary: String + let summary: String? @Environment(\.colorScheme) private var colorScheme @Environment(\.colorSchemeContrast) private var colorSchemeContrast diff --git a/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift b/TalerWallet1/Views/Sheets/P2P_Sheets/P2pReceiveURIView.swift @@ -164,7 +164,7 @@ struct PeerPushCreditView: View { let effective: Amount let isDone: Bool let scope: ScopeInfo? - let summary: String + let summary: String? var body: some View { let fee = try! Amount.diff(raw, effective)