mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Merge pull request #1625 from vector-im/langleyd/fix_emoji_shortcut_values
Fix emoji shortcut values
This commit is contained in:
+1
-1
@@ -348,7 +348,7 @@ private fun EmojiReactionsRow(
|
|||||||
) {
|
) {
|
||||||
// TODO use most recently used emojis here when available from the Rust SDK
|
// TODO use most recently used emojis here when available from the Rust SDK
|
||||||
val defaultEmojis = sequenceOf(
|
val defaultEmojis = sequenceOf(
|
||||||
"👍", "👎", "🔥", "❤️", "👏"
|
"👍️", "👎️", "🔥", "❤️", "👏"
|
||||||
)
|
)
|
||||||
for (emoji in defaultEmojis) {
|
for (emoji in defaultEmojis) {
|
||||||
val isHighlighted = highlightedEmojis.contains(emoji)
|
val isHighlighted = highlightedEmojis.contains(emoji)
|
||||||
|
|||||||
+1
-1
@@ -139,7 +139,7 @@ fun aTimelineItemReactions(
|
|||||||
count: Int = 1,
|
count: Int = 1,
|
||||||
isHighlighted: Boolean = false,
|
isHighlighted: Boolean = false,
|
||||||
): TimelineItemReactions {
|
): TimelineItemReactions {
|
||||||
val emojis = arrayOf("👍", "😀️", "😁️", "😆️", "😅️", "🤣️", "🥰️", "😇️", "😊️", "😉️", "🙃️", "🙂️", "😍️", "🤗️", "🤭️")
|
val emojis = arrayOf("👍️", "😀️", "😁️", "😆️", "😅️", "🤣️", "🥰️", "😇️", "😊️", "😉️", "🙃️", "🙂️", "😍️", "🤗️", "🤭️")
|
||||||
return TimelineItemReactions(
|
return TimelineItemReactions(
|
||||||
reactions = buildList {
|
reactions = buildList {
|
||||||
repeat(count) { index ->
|
repeat(count) { index ->
|
||||||
|
|||||||
Reference in New Issue
Block a user