diff options
| author | shpuld <shp@cock.li> | 2017-11-23 13:46:37 +0200 |
|---|---|---|
| committer | shpuld <shp@cock.li> | 2017-11-23 13:46:37 +0200 |
| commit | 6b773902e8dae36b2c4cf4c970fd1437cfdc13bc (patch) | |
| tree | 5afce3cc15815163ad9779d8d5cfe18a063011ef /src/components/timeline/timeline.js | |
| parent | 912be5aed9c8616d4c5772617ab4eef9a50d9061 (diff) | |
Fix mistake in flushMarker init, make startFetching behave properly with older statuses existing.
Diffstat (limited to 'src/components/timeline/timeline.js')
| -rw-r--r-- | src/components/timeline/timeline.js | 4 |
1 files changed, 2 insertions, 2 deletions
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() |
