From 6b773902e8dae36b2c4cf4c970fd1437cfdc13bc Mon Sep 17 00:00:00 2001 From: shpuld Date: Thu, 23 Nov 2017 13:46:37 +0200 Subject: Fix mistake in flushMarker init, make startFetching behave properly with older statuses existing. --- src/components/timeline/timeline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/timeline/timeline.js') diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 10ad4561..660a8752 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -31,7 +31,7 @@ const Timeline = { return this.timeline.newStatusCount }, newStatusCountStr () { - if (this.timeline.flushMarker > 0) { + if (this.timeline.flushMarker !== 0) { return '' } else { return ` (${this.newStatusCount})` @@ -71,7 +71,7 @@ const Timeline = { }, methods: { showNewStatuses () { - if (this.timeline.flushMarker) { + if (this.timeline.flushMarker !== 0) { this.$store.commit('clearTimeline', { timeline: this.timelineName }) this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 }) this.fetchOlderStatuses() -- cgit v1.2.3-70-g09d2