Fix tests

This commit is contained in:
Thomas Ricouard 2024-04-17 11:11:22 -07:00
parent ad61600328
commit 361b5f1d84

View file

@ -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
}