taler-ios

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

commit 90aa5ad3d7ddecab9ed69eb8f962a35ea8cf83d5
parent 32813bf9c478ad25c246e98233cc5bf7a9ca5e70
Author: Marc Stibane <marc@taler.net>
Date:   Fri, 19 Jan 2024 08:55:11 +0100

lowercased()

Diffstat:
MTalerWallet1/Controllers/Controller.swift | 4++--
MTalerWallet1/Views/Sheets/QRSheet.swift | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift @@ -166,7 +166,7 @@ extension Controller { symLog.log(url) guard let scheme = url.scheme else {return UrlCommand.unknown} var uncrypted = false - switch scheme { + switch scheme.lowercased() { case "taler+http": uncrypted = true fallthrough @@ -196,7 +196,7 @@ extension Controller { symLog.log("uncrypted: taler://\(command)") // TODO: uncrypted } - switch command { + switch command.lowercased() { case "withdraw": return .withdraw case "withdraw-exchange": diff --git a/TalerWallet1/Views/Sheets/QRSheet.swift b/TalerWallet1/Views/Sheets/QRSheet.swift @@ -19,7 +19,7 @@ struct QRSheet: View { if let scannedURL = URL(string: scannedCode!) { let scheme = scannedURL.scheme - if scheme == "taler" { + if scheme?.lowercased() == "taler" { URLSheet(stack: stack.push(), urlToOpen: scannedURL) } else { // let _ = print(scannedURL) // TODO: logging