mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Detect NIP-10 / NIP-22 replies in the desktop feed pipeline and render an embedded parent card plus a "Replying to @displayName" label above the reply body, matching Android's home-feed behavior. Extracts the shared ReplyToLabel composable + ReplyContext data class to commons so Android switches over to the shared version. - commons/.../ui/note/ReplyContext.kt: data class + from(event, cache) detection. NIP-10 + NIP-22 unified via BaseThreadedEvent polymorphism. - commons/.../ui/note/ReplyToLabel.kt: shared composable. - commons/strings.xml: new "Notes & Replies" section + replying_to key. - desktopApp NoteCard: replyContext param + render branch (bordered QuotedNoteEmbed + ReplyToLabel). Recursion impossible because QuotedNoteEmbed's inner NoteCard call doesn't pass replyContext. - desktopApp FeedScreen: rememberReplyContext() observes parent metadata flow so embed/label pop in once the parent arrives via relay subscription. Wired into both regular and reposted-inner paths. - amethyst ReplyInformation.kt: removed local ReplyToLabel definition. - amethyst Text.kt: calls shared commons ReplyToLabel; resolves author display name at the call site. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>