From 1ba04bb369e98d91ade1e0e3ca31270f4fa14bbd Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 21 Oct 2018 12:46:27 +0900
Subject: [PATCH] refs #619 Clear notification badge on app icon when reload or
scroll
---
.../components/TimelineSpace/Contents/Notifications.vue | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/renderer/components/TimelineSpace/Contents/Notifications.vue b/src/renderer/components/TimelineSpace/Contents/Notifications.vue
index 1c9118ba9f..e6502b28ea 100644
--- a/src/renderer/components/TimelineSpace/Contents/Notifications.vue
+++ b/src/renderer/components/TimelineSpace/Contents/Notifications.vue
@@ -98,6 +98,7 @@ export default {
} else if (newState === null && !this.heading) {
this.$store.commit('TimelineSpace/Contents/Notifications/changeHeading', true)
this.$store.commit('TimelineSpace/Contents/Notifications/mergeNotifications')
+ this.$store.dispatch('TimelineSpace/Contents/Notifications/resetBadge')
}
}
},
@@ -118,6 +119,7 @@ export default {
} else if ((event.target.scrollTop <= 10) && !this.heading) {
this.$store.commit('TimelineSpace/Contents/Notifications/changeHeading', true)
this.$store.commit('TimelineSpace/Contents/Notifications/mergeNotifications')
+ this.$store.dispatch('TimelineSpace/Contents/Notifications/resetBadge')
}
},
async reload () {
@@ -143,6 +145,7 @@ export default {
})
})
+ this.$store.dispatch('TimelineSpace/Contents/Notifications/resetBadge')
this.$store.dispatch('TimelineSpace/startUserStreaming', account)
this.$store.dispatch('TimelineSpace/startLocalStreaming', account)
} finally {