aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.js
diff options
context:
space:
mode:
authorEdijs <iamedijs@hotmail.com>2019-02-18 18:32:20 -0700
committerEdijs <iamedijs@hotmail.com>2019-02-18 18:32:20 -0700
commitd032ce2758cb57ea34e1fea2d1804656965b635e (patch)
treecc20b70dc3aae88ef8fc6ed955dab53f5e3272ee /src/components/timeline/timeline.js
parent0d2922afb3bcfcdcc439f158d147db1f08d995c7 (diff)
Validate if there are any new status to show
Diffstat (limited to 'src/components/timeline/timeline.js')
-rw-r--r--src/components/timeline/timeline.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index d7f7029e..06832898 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -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 })