fix: include emoji event stores in IndexedDB cleanup

The userEmojiListEvents and emojiSetEvents stores were not included in
the cleanUp() method, causing their cached data to never expire. Add
both stores with a 7-day expiration period.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
codytseng 2026-03-20 22:12:44 +08:00
parent 6cca3969ce
commit 1c3d58f490

View file

@ -629,6 +629,14 @@ class IndexedDbService {
{
name: StoreNames.PIN_LIST_EVENTS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 30 // 30 days
},
{
name: StoreNames.USER_EMOJI_LIST_EVENTS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 7 // 7 days
},
{
name: StoreNames.EMOJI_SET_EVENTS,
expirationTimestamp: Date.now() - 1000 * 60 * 60 * 24 * 7 // 7 days
}
]
const transaction = this.db!.transaction(