Fixes anon accounts becoming empty bubbles in the notifiy section of new posts.

This commit is contained in:
Vitor Pamplona
2026-03-25 13:53:06 -04:00
parent 9e9f6c3164
commit 2474ba1713
@@ -87,12 +87,21 @@ private fun DisplayUserNameWithDeleteMark(
accountViewModel: AccountViewModel,
) {
val innerUserState by observeUserInfo(user, accountViewModel)
innerUserState?.let { meta ->
val meta = innerUserState
if (meta != null) {
CreateTextWithEmoji(
text = remember(meta) { "${meta.info.bestName() ?: user.pubkeyDisplayHex()}" },
tags = meta.tags,
color = Color.White,
textAlign = TextAlign.Center,
)
} else {
Text(
text = remember(meta) { "${user.pubkeyDisplayHex()}" },
color = Color.White,
textAlign = TextAlign.Center,
)
}
}