Merge remote-tracking branch 'refs/remotes/origin/master' into bbs

This commit is contained in:
syuilo 2017-10-31 21:32:38 +09:00
commit 0e95cdb04c
19 changed files with 526 additions and 393 deletions

View file

@ -252,6 +252,12 @@
});
this.onNotification = notification => {
// TODO: ユーザーが画面を見てないと思われるとき(ブラウザやタブがアクティブじゃないなど)は送信しない
this.stream.send({
type: 'read_notification',
id: notification.id
});
this.notifications.unshift(notification);
this.update();
};