diff --git a/src/native/days.ts b/src/native/days.ts index 8669d7cda..014690d6a 100644 --- a/src/native/days.ts +++ b/src/native/days.ts @@ -13,8 +13,7 @@ const seenABUIDs = new Set(); // Clear the cache whenever the timeline is refreshed if (has()) { document.addEventListener('DOMContentLoaded', () => { - utils.bus.on('memories:timeline:soft-refresh', () => daysCache.clear()); - utils.bus.on('memories:timeline:hard-refresh', () => daysCache.clear()); + utils.bus.on('nativex:db:updated', () => daysCache.clear()); }); } diff --git a/src/services/utils/event-bus.ts b/src/services/utils/event-bus.ts index dabea5e65..19fbee462 100644 --- a/src/services/utils/event-bus.ts +++ b/src/services/utils/event-bus.ts @@ -46,6 +46,9 @@ export type BusEvent = { /** Albums were updated for these photos */ 'memories:albums:update': IPhoto[]; + + /** NativeX database was updated */ + 'nativex:db:updated': null; }; /**