This commit is contained in:
syuilo
2025-03-23 09:53:02 +09:00
parent 50435a3f68
commit f3bb4d6603
9 changed files with 23 additions and 5 deletions

View File

@@ -511,6 +511,11 @@ export async function mainBoot() {
sound.playMisskeySfx('antenna');
});
main.on('newChatMessage', () => {
updateCurrentAccountPartial({ hasUnreadChatMessages: true });
sound.playMisskeySfx('chat');
});
main.on('readAllAnnouncements', () => {
updateCurrentAccountPartial({ hasUnreadAnnouncement: false });
});

View File

@@ -114,6 +114,7 @@ export const navbarItemDef = reactive({
title: i18n.ts.chat,
icon: 'ti ti-message',
to: '/chat',
indicated: computed(() => $i != null && $i.hasUnreadChatMessages),
},
achievements: {
title: i18n.ts.achievements,