"Visa fler" budget counts every thread ever opened #235
Labels
No labels
area/ci
area/desktop
area/packaging
area/protocol
area/reading
area/ui
area/web
area/writing
kind/bug
kind/feature
kind/infra
kind/request
needs/user
parked
perf
security
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
littlefox/neokom#235
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found while looking into scrolling (#230, D-058). This bug came with #223 (#220).
openedinapp/src/main_view/mod.rsholds every post whose "Visa fler" was clicked. It is never cleared: the comment says texts of other threads in it don't matter. They do.Kom::threadgives an opened branch a budget ofOPEN_BUDGET * open.len(), counting all opened posts, including other threads'.So after "Visa fler" in 20 threads, the next click anywhere opens up to 2 000 posts instead of 100. The set is also cloned on every thread load, and grows for the whole session.
Fix:
openedper thread root and drop it when the thread is left;thread_treewith an opened post from another thread.Merged in #248; main run #403 green. Verified: the devserver test
thread_treeopens a 110-link chain at its root with and without posts opened elsewhere and expects the same; it failed before the fix and passes after. thread.spec and show-more.spec pass in CI.