* Load all message counts (backward compatible) * Returns same format as old JSON file
()
| 16 | * Returns same format as old JSON file |
| 17 | */ |
| 18 | async function loadMessageCounts() { |
| 19 | try { |
| 20 | const data = await store.getAllMessageCounts(); |
| 21 | return data.messageCount || {}; |
| 22 | } |
| 23 | catch (error) { |
| 24 | console.error('Error loading message counts:', error); |
| 25 | return {}; |
| 26 | } |
| 27 | } |
| 28 | /** |
| 29 | * Save message counts (backward compatible, but now a no-op) |
| 30 | * Data is auto-saved by the store system |