mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Update Meshtastic/MeshtasticApp.swift
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
bb43a1ec9d
commit
1b00ea7860
1 changed files with 3 additions and 3 deletions
|
|
@ -89,9 +89,9 @@ struct MeshtasticAppleApp: App {
|
|||
Logger.mesh.debug("Some sort of URL was received \(url, privacy: .public)")
|
||||
self.incomingUrl = url
|
||||
if url.absoluteString.lowercased().contains("meshtastic.org/v/#") {
|
||||
if let components = self.incomingUrl?.absoluteString.components(separatedBy: "#") {
|
||||
// Extract contact information from the URL
|
||||
if let contactData = components.last {
|
||||
let components = self.incomingUrl?.absoluteString.components(separatedBy: "#") ?? []
|
||||
// Extract contact information from the URL
|
||||
if let contactData = components.last {
|
||||
|
||||
let decodedString = contactData.base64urlToBase64()
|
||||
if let decodedData = Data(base64Encoded: decodedString) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue