From 1c3d58f490015cb426b9ac8ad1d5e4628457c678 Mon Sep 17 00:00:00 2001 From: codytseng Date: Fri, 20 Mar 2026 22:12:44 +0800 Subject: [PATCH] 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) --- src/services/indexed-db.service.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/services/indexed-db.service.ts b/src/services/indexed-db.service.ts index 886fdd7..e5ec7e8 100644 --- a/src/services/indexed-db.service.ts +++ b/src/services/indexed-db.service.ts @@ -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(