fix: User-Badge verschwindet beim Klick, grünes Badge in Favoriten bleibt

This commit is contained in:
2026-06-18 16:47:31 +02:00
parent 161e43f58a
commit c3871c96ee

View File

@@ -1988,6 +1988,7 @@ function Dashboard({ toast, mobile, setActive, setDevToolsNav, unreadMsgs=0, unr
setActive('media');
setTimeout(()=>window.dispatchEvent(new CustomEvent('media-navigate',{detail:'favoriten'})),80);
} else {
setUnackedFavs({count:0,isAdmin:false}); // Badge sofort ausblenden
setActive('media');
setTimeout(()=>window.dispatchEvent(new CustomEvent('media-navigate',{detail:'favoriten'})),80);
}