android, desktop: disable new emojis (#5507)

This commit is contained in:
Stanislav Dmitrenko
2025-01-11 04:16:05 +07:00
committed by GitHub
parent 77de92be03
commit 57cd99f619
2 changed files with 9 additions and 1 deletions
@@ -3257,6 +3257,14 @@ sealed class MsgReaction {
companion object {
val values: List<MsgReaction> get() = MREmojiChar.values().map(::Emoji)
val old: List<MsgReaction> get() = listOf(
MREmojiChar.ThumbsUp,
MREmojiChar.ThumbsDown,
MREmojiChar.Smile,
MREmojiChar.Sad,
MREmojiChar.Heart,
MREmojiChar.Launch
).map(::Emoji)
}
}
@@ -258,7 +258,7 @@ fun ChatItemView(
@Composable
fun MsgReactionsMenu() {
val rs = MsgReaction.values.mapNotNull { r ->
val rs = MsgReaction.old.mapNotNull { r ->
if (null == cItem.reactions.find { it.userReacted && it.reaction.text == r.text }) {
r
} else {