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,
|
accountViewModel: AccountViewModel,
|
||||||
) {
|
) {
|
||||||
val innerUserState by observeUserInfo(user, accountViewModel)
|
val innerUserState by observeUserInfo(user, accountViewModel)
|
||||||
innerUserState?.let { meta ->
|
|
||||||
|
val meta = innerUserState
|
||||||
|
|
||||||
|
if (meta != null) {
|
||||||
CreateTextWithEmoji(
|
CreateTextWithEmoji(
|
||||||
text = remember(meta) { "✖ ${meta.info.bestName() ?: user.pubkeyDisplayHex()}" },
|
text = remember(meta) { "✖ ${meta.info.bestName() ?: user.pubkeyDisplayHex()}" },
|
||||||
tags = meta.tags,
|
tags = meta.tags,
|
||||||
color = Color.White,
|
color = Color.White,
|
||||||
textAlign = TextAlign.Center,
|
textAlign = TextAlign.Center,
|
||||||
)
|
)
|
||||||
|
} else {
|
||||||
|
Text(
|
||||||
|
text = remember(meta) { "✖ ${user.pubkeyDisplayHex()}" },
|
||||||
|
color = Color.White,
|
||||||
|
textAlign = TextAlign.Center,
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user