1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-10 00:14:09 +02:00

Merge branch 'develop' into vue3

This commit is contained in:
syuilo
2020-08-25 08:54:57 +09:00
24 changed files with 390 additions and 145 deletions

View File

@@ -155,6 +155,11 @@ export default defineComponent({
},
async onNotification(notification) {
const t = this.$store.state.i.includingNotificationTypes;
if (!!t && !t.includes(notification.type)) {
return;
}
if (document.visibilityState === 'visible') {
this.$root.stream.send('readNotification', {
id: notification.id
@@ -164,7 +169,6 @@ export default defineComponent({
notification
});
}
this.$root.sound('notification');
},