Show only latest 200 posts for performance
This commit is contained in:
parent
10d94acb8b
commit
dd284a5abe
2 changed files with 6 additions and 5 deletions
9
TODO
9
TODO
|
@ -1,16 +1,17 @@
|
||||||
Here lie goals:
|
Here lie goals:
|
||||||
[ ] Autocomplete for usernames in composition
|
[ ] Autocomplete for usernames in composition
|
||||||
[ ] Display following list
|
|
||||||
[ ] Display followers
|
[ ] Display followers
|
||||||
|
[ ] Display following list
|
||||||
[ ] Export/import contacts list
|
[ ] Export/import contacts list
|
||||||
[ ] Redesign embeds
|
[ ] Redesign embeds
|
||||||
[ ] Render lighting invoices (BOLT11) Do this without a library
|
[ ] Render lighting invoices (BOLT11) Do this without a library
|
||||||
[ ] Replace local storage usage
|
[ ] Replace local storage usage
|
||||||
|
[ ] Show "Show More" button at end of timeline to display next 200
|
||||||
[ ] Show likes on profile page under a tab
|
[ ] Show likes on profile page under a tab
|
||||||
[ ] Update profile fields: name, banner, website, lightning address
|
|
||||||
[ ] Store profiles of friends, friends of friends, & the user
|
[ ] Store profiles of friends, friends of friends, & the user
|
||||||
[x] Mark all mail as read button.
|
|
||||||
[x] Toggle replys only in home view
|
|
||||||
[x] Direct messaging
|
[x] Direct messaging
|
||||||
[x] Fix UI/X issues on mobile (modal, reply, etc.)
|
[x] Fix UI/X issues on mobile (modal, reply, etc.)
|
||||||
|
[x] Mark all mail as read button.
|
||||||
[x] Render tagged users e.g. #[0]
|
[x] Render tagged users e.g. #[0]
|
||||||
|
[x] Toggle replys only in home view
|
||||||
|
[x] Update profile fields: name, banner, website, lightning address
|
||||||
|
|
|
@ -187,7 +187,7 @@ function view_timeline_refresh(model, mode, opts={}) {
|
||||||
model_get_dm(model, opts.pubkey).events.concat().reverse() :
|
model_get_dm(model, opts.pubkey).events.concat().reverse() :
|
||||||
model_events_arr(model);
|
model_events_arr(model);
|
||||||
const fragment = new DocumentFragment();
|
const fragment = new DocumentFragment();
|
||||||
for (let i = evs.length - 1; i >= 0 && count < 1000; i--) {
|
for (let i = evs.length - 1; i >= 0 && count < 200; i--) {
|
||||||
const ev = evs[i];
|
const ev = evs[i];
|
||||||
if (!view_mode_contains_event(model, ev, mode, opts))
|
if (!view_mode_contains_event(model, ev, mode, opts))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue