Fix pinned statuses gone when reloading user timeline

This commit is contained in:
tusooa 2023-07-18 19:06:00 -04:00
parent 510392e4ca
commit 35d3b8f27d
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
2 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1 @@
Fix pinned statuses gone when reloading user timeline

View File

@ -160,6 +160,9 @@ const Timeline = {
if (this.timeline.flushMarker !== 0) {
this.$store.commit('clearTimeline', { timeline: this.timelineName, excludeUserId: true })
this.$store.commit('queueFlush', { timeline: this.timelineName, id: 0 })
if (this.timelineName === 'user') {
this.$store.dispatch('fetchPinnedStatuses', this.userId)
}
this.fetchOlderStatuses()
} else {
this.blockClicksTemporarily()