fix(feed): observe metadata flow on regular notes for display name updates

Pre-existing bug: regular (non-repost) notes in the feed never observed
note.flow().metadata.stateFlow. When metadata arrived from relays and
invalidateData() was called, the composable didn't recompose — author
names and avatars stayed as hex fallbacks.

The repost path already observed metadata correctly (line 130). Added
the same observation to the regular note path (line 211).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
nrobi144
2026-04-29 10:30:36 +03:00
parent 4b1d468ed0
commit a826918293
@@ -207,8 +207,9 @@ fun FeedNoteCard(
}
}
} else {
// Regular note rendering (unchanged)
// Regular note rendering
val flowSet = remember(note) { note.flow() }
val metadataState by flowSet.metadata.stateFlow.collectAsState()
val reactionsState by flowSet.reactions.stateFlow.collectAsState()
val repliesState by flowSet.replies.stateFlow.collectAsState()
val zapsState by flowSet.zaps.stateFlow.collectAsState()