-
Notifications
You must be signed in to change notification settings - Fork 327
Display only valid emojis in recent emoji list #5612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #5612 +/- ##
===========================================
+ Coverage 79.76% 79.78% +0.01%
===========================================
Files 2395 2396 +1
Lines 65012 65020 +8
Branches 8262 8263 +1
===========================================
+ Hits 51860 51873 +13
+ Misses 10197 10191 -6
- Partials 2955 2956 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
|
||
| val emojis = remember(recentEmojis) { | ||
| (suggestedEmojis + recentEmojis.filter { it !in suggestedEmojis }) | ||
| (suggestedEmojis + recentEmojis).distinct() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicer solution!
…centEmojis` there - Make sure `GetRecentEmojis` won't return duplicate or invalid emojis. - `ActionListPresenter` now handles merging suggested and recent emojis, not `ActionListView`.
1ff2ff3 to
0fa66f7
Compare
8fcc5b2 to
3587d3e
Compare
|



Content
:libraries:recentemojisand move everything related to pure fetching/modification of recent emojis there.GetRecentEmojisremove duplicates and return only valid emojis (those that are inEmojibase).ActionListPresenterfromActionListView, so we can test it.Motivation and context
I was seeing some duplicate or empty emojis in my list of recent emojis. Some of them were emojis that looked the same visually but had a different representation (i.e. I had 2 green check mark ones, also in EW), but some others were being displayed blank (reactions for TWIM?).
Tests
The unit tests should be enough, but you can try testing them these values by modifying the global account data.
Tested devices
Checklist