refs #619 Clear notification badge on app icon when reload or scroll

This commit is contained in:
AkiraFukushima 2018-10-21 12:46:27 +09:00
parent 93b18082df
commit 1ba04bb369
1 changed files with 3 additions and 0 deletions

View File

@ -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 {