mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Fix cursor window dropping relays forever
This commit is contained in:
parent
c7b18d2531
commit
1716af55a5
@ -166,10 +166,10 @@ class Cursor {
|
||||
)
|
||||
|
||||
// If we got zero results for any relays, they have nothing for the given window,
|
||||
// back until up to since for next time
|
||||
// back until up to since for next time, but only for relays currently in the window
|
||||
if (this.delta) {
|
||||
this.relays.forEach(r => {
|
||||
if (untilCopy[r.url] === this.until[r.url]) {
|
||||
if (this.until[r.url] > this.since && untilCopy[r.url] === this.until[r.url]) {
|
||||
this.until[r.url] -= this.delta
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user