Ensure mention profiles render with display names

Co-authored-by: Daniel D’Aquino <daniel@daquino.me>
Closes: https://github.com/damus-io/damus/issues/3331
Changelog-Fixed: Fix mention pills falling back to @npub text when profile metadata is missing
Signed-off-by: alltheseas <64376233+alltheseas@users.noreply.github.com>
This commit is contained in:
alltheseas
2025-11-26 11:05:42 -08:00
committed by Daniel D’Aquino
co-authored by Daniel D’Aquino
parent 44071e9d75
commit 7eafe973d9
2 changed files with 56 additions and 0 deletions
@@ -101,6 +101,10 @@ extension NostrNetworkManager {
relevantStream.continuation.yield(profile)
}
}
// Notify the rest of the app so views that rely on rendered text (like mention strings)
// can reload and pick up the freshly fetched profile metadata.
notify(.profile_updated(.remote(pubkey: metadataEvent.pubkey)))
}