mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-26 14:05:52 +00:00
add unread badge to users row
This commit is contained in:
+1
-1
@@ -466,7 +466,7 @@ fun UserProfileButton(image: String?, allRead: Boolean, onButtonClicked: () -> U
|
||||
|
||||
|
||||
@Composable
|
||||
private fun BoxScope.unreadBadge(text: String? = "") {
|
||||
fun BoxScope.unreadBadge(text: String? = "") {
|
||||
Text(
|
||||
text ?: "",
|
||||
color = MaterialTheme.colors.onPrimary,
|
||||
|
||||
+7
-1
@@ -177,7 +177,13 @@ private fun UsersLayout(
|
||||
onClick = { onUserClicked(u.user) },
|
||||
enabled = !stopped
|
||||
) {
|
||||
ProfileImage(size = 44.dp * fontSizeSqrtMultiplier, image = u.user.image)
|
||||
Box {
|
||||
ProfileImage(size = 44.dp * fontSizeSqrtMultiplier, image = u.user.image)
|
||||
|
||||
if (u.unreadCount > 0) {
|
||||
unreadBadge()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
IconButton(
|
||||
|
||||
Reference in New Issue
Block a user