diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt index 39d89eeaf8..bddb8dda74 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/ChatListView.kt @@ -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, diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt index 9eeeb3771c..b181975ac5 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chatlist/UserPicker.kt @@ -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(