mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-11 06:05:49 +01:00
Fix tests
This commit is contained in:
parent
ad61600328
commit
361b5f1d84
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user