Fix badge notification: single bubble, working Wear button

Block NotificationDialogMessageEvent badge types to prevent duplicate
bubbles. Wrap bubble content in stopPropagation div so button clicks
don't close the notification before toggleBadge runs. Request badge
data on mount so Wear works even if inventory was never opened.
This commit is contained in:
Life
2026-04-04 18:45:19 +02:00
parent bc6a33a3ba
commit 0b033742d0
2 changed files with 47 additions and 24 deletions
@@ -356,6 +356,9 @@ const useNotificationState = () =>
{
const parser = event.getParser();
// Skip badge notifications — handled by BadgeReceivedEvent with "Wear" button
if(parser.type === 'badge_received' || parser.type === 'badges' || parser.type.includes('badge')) return;
showNotification(parser.type, parser.parameters);
});