Skip to content
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

Fix emoji display in the profile selector #2815

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Nov 3, 2022

Fix emoji display in the profile selector

Pull Request Type

  • Bugfix

Related issue

Closes #2813
Introduced in #2664

Description

Turns out that 'string'[0] extracts the character before parsing emojis, so you end up with the emoji split up into it's individual character codes (same with 'string'.split('')). Array.from on the other hand creates the array after parsing the emojis.

Screenshots

before after

weird_splitting_behaviour

Testing

Create a profile with an emoji as the first character
Check that the emojis shows up in the profile selector and in the top right when the profile is selected

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: 0.17.1

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 3, 2022
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) November 3, 2022 22:45
@FreeTubeBot FreeTubeBot merged commit 27992e4 into FreeTubeApp:development Nov 4, 2022
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Nov 4, 2022
@absidue absidue deleted the fix-profile-selector-emojis branch November 4, 2022 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Some Emoji aren't shown in the profile indicator or the profile selector
5 participants