question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

If a frequently used custom emoji is removed, it will remain in the frequently used

See original GitHub issue

I’m loading custom emoji into the picker, and having done some tests, I’ve removed a few. From this point you get a bunch of emoji is undefined errors because the removed emoji is still present in the emoji list for the frequent category.

Unsure at the moment as to a work around for this, other than if the emoji isn’t currently present in the emoji list or is undefined, ignore it in the frequent list.

Did some more research into this, it does look like at one point this was a feature in a previous version with this pull request: #133.

A quick glance at the code makes me think this might fix it:

Picker.js
renderEmojiButton() {
    if (emoji === undefined) {
      return null
    }

    ....
}

And

config.js after while loop starts

while (i--) {
    ...

    if (emoji === undefined) {
      continue
    }

    ...
}

But, at first glance it might not fix the ordering of the frequently used list, and merely omit emojis that cannot be found, leaving you with uneven groupings in the middle.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EtienneLemcommented, May 19, 2022

@alixcui-glean Of course. The prompt to add custom emojis is actually not part of the library, it’s just for the example website. Here’s an example: https://github.com/missive/emoji-mart/blob/2b1b67a4d81781aaee7700ce1bc0c05aa104dd2d/packages/emoji-mart-website/index.html#L271-L294

0reactions
gregsadetskycommented, Jun 1, 2022

Cheers! Extremely small ping to remind you to update https://missiveapp.com/open/emoji-mart/ but otherwise nothing to say except one big thanks! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Clear Your Frequently Used & Recent Emojis from ...
There is no way to get rid of the Frequently Used section, at least, not any official means.
Read more >
Add custom emoji and aliases to your workspace - Slack
1. From your desktop, click your workspace name in the top left. 2. Select Customize [workspace name]. If you're an owner or admin,...
Read more >
Manage custom emoji permissions | Slack
Change custom emoji permissions · From your desktop, click your workspace name in the top left. · Select Settings & administration from the...
Read more >
Remove emojis from Frequently Used list - Discord Support
I suggest that either the default emojis are removed from the 'Frequently Used' list, leaving a blank slate for new users and/or current...
Read more >
Discord: How to Remove Custom Emojis From a Server on ...
Step 1: While viewing the server's channel list, tap the server name at the top of the screen. ; Step 2: Tap “Settings.”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found