Skip to content

Use localStorage for emoji pack setting #1125

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lSang5
Copy link

@lSang5 lSang5 commented Jul 10, 2025

Please make sure to check the following tasks before opening and submitting a PR

  • [✅] I understand and have followed the contribution guide
  • [✅] I have tested my changes locally and they are working as intended
  • [✅] These changes do not have any notable side effects on other Revolt projects
  • (optional) I have opened a pull request on the translation repository
  • [✅] I have included screenshots to demonstrate my changes

The emoji pack selector returned to default every time the page was reloaded. Added localStorage to the function that changes the pack globally to also save the change.

Fixes part of #1117

image

@Zomatree
Copy link
Member

This should use the proper settings sync system and not local storage, the setting is already properly synced however the Emoji does not read the setting value.

@DeclanChidlow
Copy link
Member

Given the choice for other emojis isn't planned for the new clients, I don't see much issue with just using localStorage.

@lSang5
Copy link
Author

lSang5 commented Jul 11, 2025

I honestly didn't know sync was set up, I'm sorry. I for some reason assumed sync wasn't implemented. Should I leave it as it is or edit it to use sync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Untriaged
Development

Successfully merging this pull request may close these issues.

3 participants