1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-3590 Vault | Space counters, turn off mentions (#2455)

This commit is contained in:
Konstantin Ivanov 2025-05-24 15:28:49 +02:00 committed by GitHub
parent cd938cd380
commit 10939ff549
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -370,23 +370,24 @@ fun VaultSpaceCard(
.padding(end = 16.dp),
verticalAlignment = Alignment.CenterVertically
) {
if (unreadMentionCount > 0) {
Box(
modifier = Modifier
.background(
color = colorResource(R.color.glyph_active),
shape = CircleShape
)
.size(18.dp),
contentAlignment = Alignment.Center
) {
Image(
painter = painterResource(R.drawable.ic_chat_widget_mention),
contentDescription = null
)
}
Spacer(modifier = Modifier.width(8.dp))
}
//todo: uncomment when mention counters are fixed
// if (unreadMentionCount > 0) {
// Box(
// modifier = Modifier
// .background(
// color = colorResource(R.color.glyph_active),
// shape = CircleShape
// )
// .size(18.dp),
// contentAlignment = Alignment.Center
// ) {
// Image(
// painter = painterResource(R.drawable.ic_chat_widget_mention),
// contentDescription = null
// )
// }
// Spacer(modifier = Modifier.width(8.dp))
// }
if (unreadMessageCount > 0) {
val shape = if (unreadMentionCount > 9) {