summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts/streaming
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-05-29 01:22:39 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-05-29 01:22:39 +0900
commitab16fb3a3fff96a4fa2bc1fc0e56a87c129a4625 (patch)
tree26de7290eede6b42a661f328adce965a889f9887 /src/client/app/common/scripts/streaming
parenttypo (diff)
downloadsharkey-ab16fb3a3fff96a4fa2bc1fc0e56a87c129a4625.tar.gz
sharkey-ab16fb3a3fff96a4fa2bc1fc0e56a87c129a4625.tar.bz2
sharkey-ab16fb3a3fff96a4fa2bc1fc0e56a87c129a4625.zip
#1634
Diffstat (limited to 'src/client/app/common/scripts/streaming')
-rw-r--r--src/client/app/common/scripts/streaming/home.ts24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/app/common/scripts/streaming/home.ts b/src/client/app/common/scripts/streaming/home.ts
index 2715b9e0e9..50bbb56896 100644
--- a/src/client/app/common/scripts/streaming/home.ts
+++ b/src/client/app/common/scripts/streaming/home.ts
@@ -28,6 +28,30 @@ export class HomeStream extends Stream {
os.store.dispatch('mergeMe', i);
});
+ this.on('read_all_notifications', () => {
+ os.store.dispatch('mergeMe', {
+ hasUnreadNotification: false
+ });
+ });
+
+ this.on('unread_notification', () => {
+ os.store.dispatch('mergeMe', {
+ hasUnreadNotification: true
+ });
+ });
+
+ this.on('read_all_messaging_messages', () => {
+ os.store.dispatch('mergeMe', {
+ hasUnreadMessagingMessage: false
+ });
+ });
+
+ this.on('unread_messaging_message', () => {
+ os.store.dispatch('mergeMe', {
+ hasUnreadMessagingMessage: true
+ });
+ });
+
this.on('clientSettingUpdated', x => {
os.store.commit('settings/set', {
key: x.key,