Tweak cursor again

This commit is contained in:
Jonathan Staab 2022-12-14 12:40:16 -08:00
parent 11790b186c
commit 8038db26c6
3 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
Bugs
- [ ] Copy toast not showing
- [ ] Support bech32 keys
- [ ] Loading icon not showing at bottom
- [ ] uniq and sortBy are sprinkled all over the place, figure out a better solution
- [ ] With link/image previews, remove the url from the note body if it's on a separate last line
- [ ] Search page is slow and likes don't show up. Probably move this server-side

View File

@ -360,7 +360,7 @@ export const createScroller = (
// Wait a moment before proceeding to the next chunk for the caller
// to load results into the dom
await sleep(1000)
await sleep(500)
}
active = false

View File

@ -120,7 +120,7 @@ export const channels = {
export class Cursor {
constructor(filter, delta) {
this.filter = ensurePlural(filter)
this.delta = delta || timedelta(5, 'minutes')
this.delta = delta || timedelta(15, 'minutes')
this.since = now() - this.delta
this.until = now()
this.sub = null