summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-04-08 15:18:44 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-04-08 15:18:44 +0900
commit82af9320c0ea946df50e659cd76d9500b9e4d998 (patch)
tree1f38284ab61a258e4551713107b32eecc04db9ec /src
parentFix #4562 (#4563) (diff)
downloadmisskey-82af9320c0ea946df50e659cd76d9500b9e4d998.tar.gz
misskey-82af9320c0ea946df50e659cd76d9500b9e4d998.tar.bz2
misskey-82af9320c0ea946df50e659cd76d9500b9e4d998.zip
Fix: TLを遡った時に抜けがある時がある (v10) (#4629)
* Update the cursor when the timeline is updated * fix releaseQueue
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/deck/deck.notes.vue2
-rw-r--r--src/client/app/desktop/views/components/notes.vue2
-rw-r--r--src/client/app/mobile/views/components/notes.vue2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/client/app/common/views/deck/deck.notes.vue b/src/client/app/common/views/deck/deck.notes.vue
index f94eb8fd38..8787a82a1c 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 4334e78451..e4df8a4b55 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 7aeebde643..16a1682c2a 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() {