Merge pull request #1625 from vector-im/langleyd/fix_emoji_shortcut_values

Fix emoji shortcut values
This commit is contained in:
David Langley
2023-10-23 16:49:56 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -348,7 +348,7 @@ private fun EmojiReactionsRow(
) {
// TODO use most recently used emojis here when available from the Rust SDK
val defaultEmojis = sequenceOf(
"👍", "👎", "🔥", "❤️", "👏"
"👍", "👎", "🔥", "❤️", "👏"
)
for (emoji in defaultEmojis) {
val isHighlighted = highlightedEmojis.contains(emoji)

View File

@@ -139,7 +139,7 @@ fun aTimelineItemReactions(
count: Int = 1,
isHighlighted: Boolean = false,
): TimelineItemReactions {
val emojis = arrayOf("👍", "😀️", "😁️", "😆️", "😅️", "🤣️", "🥰️", "😇️", "😊️", "😉️", "🙃️", "🙂️", "😍️", "🤗️", "🤭️")
val emojis = arrayOf("👍", "😀️", "😁️", "😆️", "😅️", "🤣️", "🥰️", "😇️", "😊️", "😉️", "🙃️", "🙂️", "😍️", "🤗️", "🤭️")
return TimelineItemReactions(
reactions = buildList {
repeat(count) { index ->