MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / loadMessageCounts

Function loadMessageCounts

plugins/rank.js:18–27  ·  view source on GitHub ↗

* Load all message counts (backward compatible) * Returns same format as old JSON file

()

Source from the content-addressed store, hash-verified

16 * Returns same format as old JSON file
17 */
18async 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

Callers 1

handlerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected