fix: open app definitions by address instead of version event id

Clicking an app in the recommendations editor (or any 31990 link)
navigated to Route.Note(event.id) — the per-id version note, which the
soft cache evicts and relays can't serve for replaceables — leaving the
thread stuck on 'Event is loading or can't be found'. Route by
addressTag() like the generic AddressableEvent branch already does.

https://claude.ai/code/session_015dX5vWqvXUYD8rzPYX8vTB
This commit is contained in:
Claude
2026-06-12 15:08:42 +00:00
parent 4b47da9c5d
commit eed490f579
@@ -100,7 +100,9 @@ fun routeForInner(
if (noteEvent.includeKind(5300)) {
Route.ContentDiscovery(noteEvent.id)
} else {
Route.Note(noteEvent.id)
// By address, not version id: the per-id note may have been
// evicted and relays don't serve replaceables by old ids.
Route.Note(noteEvent.addressTag())
}
}