This commit is contained in:
2026-07-16 02:24:16 +02:00
parent 698f693700
commit a2875bf39b

View File

@@ -4136,8 +4136,10 @@ class CommentSystem {
.then(data => { .then(data => {
if (data?.success && Array.isArray(data.favorites)) { if (data?.success && Array.isArray(data.favorites)) {
localStorage.setItem(this.KEY, JSON.stringify(data.favorites)); localStorage.setItem(this.KEY, JSON.stringify(data.favorites));
// Re-render the open picker so DB favorites appear immediately
window._emojiPickerRefresh?.();
} }
}).catch(() => {}); }).catch(e => console.warn('[EmojiFavs] syncFromDB failed:', e));
} }
}; };
// Seed from DB on first open if logged in // Seed from DB on first open if logged in