Fixes anon accounts becoming empty bubbles in the notifiy section of new posts.
This commit is contained in:
+10
-1
@@ -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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user