Display only valid emojis in recent emoji list (#5612)

* Create `:libraries:recentemojis` and move `AddRecentEmoji` and `GetRecentEmojis` there

- Make sure `GetRecentEmojis` won't return duplicate or invalid emojis.
- `ActionListPresenter` now handles merging suggested and recent emojis, not `ActionListView`.
This commit is contained in:
Jorge Martin Espinosa 2025-10-30 16:27:51 +01:00 committed by GitHub
parent eb08639776
commit 353c00e032
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 351 additions and 111 deletions

View file

@ -9,7 +9,6 @@ package io.element.android.libraries.designsystem.components.media
import kotlinx.collections.immutable.persistentListOf
import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toPersistentList
object WaveFormSamples {
val allRangeWaveForm = List(100) { it.toFloat() / 100 }.toImmutableList()
@ -26,5 +25,5 @@ object WaveFormSamples {
0.000f, 0.003f,
)
val longRealisticWaveForm = List(4) { realisticWaveForm }.flatten().toPersistentList()
val longRealisticWaveForm = List(4) { realisticWaveForm }.flatten().toImmutableList()
}