Make use of backend reply filtering
This commit is contained in:
parent
82944f862d
commit
ea09bbecf8
8 changed files with 27 additions and 38 deletions
|
@ -45,6 +45,10 @@ const Timeline = {
|
|||
newStatusCount () {
|
||||
return this.timeline.newStatusCount
|
||||
},
|
||||
showLoadButton () {
|
||||
if (this.timelineError || this.errorData) return false
|
||||
return this.timeline.newStatusCount > 0 || this.timeline.flushMarker !== 0
|
||||
},
|
||||
newStatusCountStr () {
|
||||
if (this.timeline.flushMarker !== 0) {
|
||||
return ''
|
||||
|
@ -112,8 +116,6 @@ 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, excludeUserId: true })
|
||||
this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue