git ssb

16+

Dominic / patchbay



Commit 15731b8b52401550786284a1bb52b82155248446

Use next to make endless scroll work.

Piet Geursen committed on 3/17/2017, 1:41:16 AM
Parent: 6833e7777a672c577d2a19982549f7787c6c3135

Files changed

router/html/page/mentions.jschanged
router/html/page/mentions.jsView
@@ -14,21 +14,21 @@
1414 'main.html.scroller': 'first'
1515 })
1616 exports.create = function (api) {
1717 return nest('router.html.page', (path) => {
18- if (path !== '/notifications') return
18+ if (path !== '/mentions') return
1919 const id = api.keys.sync.id()
2020 const mentions = api.feed.pull.mentions(id)
2121
2222 const { container, content } = api.main.html.scroller({})
2323
2424 pull(
25- mentions({old: false, limit: 100}),
25+ next(mentions, {old: false, limit: 100}),
2626 Scroller(container, content, api.message.html.render, true, false)
2727 )
2828
2929 pull(
30- mentions({reverse: true, limit: 100, live: false}),
30+ next(mentions, {reverse: true, limit: 100, live: false}),
3131 Scroller(container, content, api.message.html.render, false, false)
3232 )
3333 return container
3434 })

Built with git-ssb-web