From 82af9320c0ea946df50e659cd76d9500b9e4d998 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Mon, 8 Apr 2019 15:18:44 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20TL=E3=82=92=E9=81=A1=E3=81=A3=E3=81=9F?= =?UTF-8?q?=E6=99=82=E3=81=AB=E6=8A=9C=E3=81=91=E3=81=8C=E3=81=82=E3=82=8B?= =?UTF-8?q?=E6=99=82=E3=81=8C=E3=81=82=E3=82=8B=20(v10)=20(#4629)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update the cursor when the timeline is updated * fix releaseQueue --- src/client/app/common/views/deck/deck.notes.vue | 2 ++ src/client/app/desktop/views/components/notes.vue | 2 ++ src/client/app/mobile/views/components/notes.vue | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/client/app/common/views/deck/deck.notes.vue b/src/client/app/common/views/deck/deck.notes.vue index f94eb8fd3..8787a82a1 100644 --- a/src/client/app/common/views/deck/deck.notes.vue +++ b/src/client/app/common/views/deck/deck.notes.vue @@ -157,6 +157,7 @@ export default Vue.extend({ // オーバーフローしたら古い投稿は捨てる if (this.notes.length >= displayLimit) { this.notes = this.notes.slice(0, displayLimit); + this.cursor = this.notes[this.notes.length - 1].id } } else { this.queue.push(note); @@ -165,6 +166,7 @@ export default Vue.extend({ append(note) { this.notes.push(note); + this.cursor = this.notes[this.notes.length - 1].id }, releaseQueue() { diff --git a/src/client/app/desktop/views/components/notes.vue b/src/client/app/desktop/views/components/notes.vue index 4334e7845..e4df8a4b5 100644 --- a/src/client/app/desktop/views/components/notes.vue +++ b/src/client/app/desktop/views/components/notes.vue @@ -157,6 +157,7 @@ export default Vue.extend({ // オーバーフローしたら古い投稿は捨てる if (this.notes.length >= displayLimit) { this.notes = this.notes.slice(0, displayLimit); + this.cursor = this.notes[this.notes.length - 1].id } } else { this.queue.push(note); @@ -165,6 +166,7 @@ export default Vue.extend({ append(note) { this.notes.push(note); + this.cursor = this.notes[this.notes.length - 1].id }, releaseQueue() { diff --git a/src/client/app/mobile/views/components/notes.vue b/src/client/app/mobile/views/components/notes.vue index 7aeebde64..16a1682c2 100644 --- a/src/client/app/mobile/views/components/notes.vue +++ b/src/client/app/mobile/views/components/notes.vue @@ -151,6 +151,7 @@ export default Vue.extend({ // オーバーフローしたら古い投稿は捨てる if (this.notes.length >= displayLimit) { this.notes = this.notes.slice(0, displayLimit); + this.cursor = this.notes[this.notes.length - 1].id } } else { this.queue.push(note); @@ -159,6 +160,7 @@ export default Vue.extend({ append(note) { this.notes.push(note); + this.cursor = this.notes[this.notes.length - 1].id }, releaseQueue() {