Commit 15731b8b52401550786284a1bb52b82155248446
Use next to make endless scroll work.
Piet Geursen committed on 3/17/2017, 1:41:16 AMParent: 6833e7777a672c577d2a19982549f7787c6c3135
Files changed
router/html/page/mentions.js | changed |
router/html/page/mentions.js | ||
---|---|---|
@@ -14,21 +14,21 @@ | ||
14 | 14 | 'main.html.scroller': 'first' |
15 | 15 | }) |
16 | 16 | exports.create = function (api) { |
17 | 17 | return nest('router.html.page', (path) => { |
18 | - if (path !== '/notifications') return | |
18 | + if (path !== '/mentions') return | |
19 | 19 | const id = api.keys.sync.id() |
20 | 20 | const mentions = api.feed.pull.mentions(id) |
21 | 21 | |
22 | 22 | const { container, content } = api.main.html.scroller({}) |
23 | 23 | |
24 | 24 | pull( |
25 | - mentions({old: false, limit: 100}), | |
25 | + next(mentions, {old: false, limit: 100}), | |
26 | 26 | Scroller(container, content, api.message.html.render, true, false) |
27 | 27 | ) |
28 | 28 | |
29 | 29 | pull( |
30 | - mentions({reverse: true, limit: 100, live: false}), | |
30 | + next(mentions, {reverse: true, limit: 100, live: false}), | |
31 | 31 | Scroller(container, content, api.message.html.render, false, false) |
32 | 32 | ) |
33 | 33 | return container |
34 | 34 | }) |
Built with git-ssb-web