mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-14 16:55:27 +00:00
android, desktop: disable new emojis (#5507)
This commit is contained in:
committed by
GitHub
parent
77de92be03
commit
57cd99f619
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user