Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Apr 17, 2024
1 parent ad61600 commit 361b5f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Packages/Env/Sources/Env/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,16 @@ public enum SheetDestination: Identifiable, Hashable {
await navigateToAccountFrom(acct: acct, url: url)
}
return .handled
} else if let client,
client.isAuth,
client.hasConnection(with: url),
let id = Int(url.lastPathComponent) {
if url.absoluteString.contains(client.server) {
navigate(to: .statusDetail(id: String(id)))
} else {
navigate(to: .remoteStatusDetail(url: url))
}
return .handled
}
return urlHandler?(url) ?? .systemAction
}
Expand Down

0 comments on commit 361b5f1

Please sign in to comment.