fix emoji count wrapping

This commit is contained in:
Ben Iofel
2025-09-13 17:21:16 -04:00
parent fb28453b39
commit ed63d27511
3 changed files with 7 additions and 4 deletions
@@ -411,7 +411,8 @@ class MessagesAdapter @Inject constructor(
val reactionText = if (topReaction.second == 1) {
topReaction.first
} else {
"${topReaction.first} ${topReaction.second}"
// Use a non-breaking space to keep the emoji and count together
"${topReaction.first}\u00A0${topReaction.second}"
}
holder.reactionText?.text = reactionText
@@ -516,4 +517,4 @@ class MessagesAdapter @Inject constructor(
}
}
}
}