aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2017-11-23 13:46:37 +0200
committershpuld <shp@cock.li>2017-11-23 13:46:37 +0200
commit6b773902e8dae36b2c4cf4c970fd1437cfdc13bc (patch)
tree5afce3cc15815163ad9779d8d5cfe18a063011ef /src/components/timeline/timeline.js
parent912be5aed9c8616d4c5772617ab4eef9a50d9061 (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.js4
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()