Validate if there are any new status to show

This commit is contained in:
Edijs 2019-02-18 18:32:20 -07:00
parent 0d2922afb3
commit d032ce2758

View file

@ -80,6 +80,8 @@ const Timeline = {
if (e.key === '.') this.showNewStatuses()
},
showNewStatuses () {
if (this.newStatusCount === 0) return
if (this.timeline.flushMarker !== 0) {
this.$store.commit('clearTimeline', { timeline: this.timelineName })
this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 })