mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 08:23:08 +02:00
Fix: TLを遡った時に抜けがある時がある (v10) (#4629)
* Update the cursor when the timeline is updated * fix releaseQueue
This commit is contained in:
parent
fceebf7388
commit
82af9320c0
3 changed files with 6 additions and 0 deletions
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue