summaryrefslogtreecommitdiff
path: root/src/web/app/desktop
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-10-30 22:12:10 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-10-30 22:12:10 +0900
commitcaa47cb38cfc3950539c78ca2e70f2c50e815d2c (patch)
treefc1a70e1c1b105ecf8d74ff4d952eff86ded83f6 /src/web/app/desktop
parenti18n (diff)
downloadmisskey-caa47cb38cfc3950539c78ca2e70f2c50e815d2c.tar.gz
misskey-caa47cb38cfc3950539c78ca2e70f2c50e815d2c.tar.bz2
misskey-caa47cb38cfc3950539c78ca2e70f2c50e815d2c.zip
未読の通知がある場合アイコンを表示するように
Diffstat (limited to 'src/web/app/desktop')
-rw-r--r--src/web/app/desktop/tags/notifications.tag6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/web/app/desktop/tags/notifications.tag b/src/web/app/desktop/tags/notifications.tag
index 1046358ce9..a4f66105a8 100644
--- a/src/web/app/desktop/tags/notifications.tag
+++ b/src/web/app/desktop/tags/notifications.tag
@@ -252,6 +252,12 @@
});
this.onNotification = notification => {
+ // TODO: ユーザーが画面を見てないと思われるとき(ブラウザやタブがアクティブじゃないなど)は送信しない
+ this.stream.send({
+ type: 'read_notification',
+ id: notification.id
+ });
+
this.notifications.unshift(notification);
this.update();
};