Skip to content
Snippets Groups Projects
Unverified Commit 81f1df74 authored by tamaina's avatar tamaina Committed by GitHub
Browse files

Resolve #6405 (#6406)

parent abc296cd
No related branches found
No related tags found
No related merge requests found
......@@ -500,8 +500,7 @@ export default Vue.extend({
},
async onNotification(notification) {
// TODO: ユーザーが画面を見てないと思われるとき(ブラウザやタブがアクティブじゃないなど)は送信しない
if (true) {
if (document.visibilityState === 'visible') {
this.$root.stream.send('readNotification', {
id: notification.id
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment