wip
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user