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

Sync frequently used stickers with current available packs #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

salixor
Copy link
Contributor

@salixor salixor commented May 27, 2023

Currently, there are two instances where the storage of frequently used stickers gets out of sync with available packs :

  • if a JSON file is removed from the index.json file
  • if any JSON file for a pack is edited

This means stickers in the "Frequently used" list can have out of date metadatas, and sending them from this list or from the pack can lead to a different sent event. This also means, and that's even more confusing, that a sticker can be found in this list, when it is no longer found in any pack.

These changes aim to properly refresh the list of frequently used with the currently available packs, as well as the current metadatas of the available packs, in order to keep them in sync, and make it less confusing to users.

This also adds a button to clear the frequently used list, for people who may need to, since access to the storage is not the simplest thing.

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.

1 participant