pangeachat / client

Learn a language while texting your friends
https://krille-chan.github.io/fluffychat/
GNU Affero General Public License v3.0
1 stars 2 forks source link

Fix span cache #334

Closed Kelrap closed 1 month ago

Kelrap commented 1 month ago

Cache keys are only developed using message content and user settings

ggurdin commented 1 month ago

In a Spanish -> English room, I typed the message "Heres a messages in english with multiple error.", which has 4 errors. Each time I clicked an error, I got the same span card. When I printed out the _cache and cacheKeys at each step of the process, it looks like each error has the same hashcode, so only one entry was saved in the cache.