[Tokodon] [Bug 495996] Pull to refresh

Joshua Goins bugzilla_noreply at kde.org
Mon Jan 20 01:07:14 GMT 2025


https://bugs.kde.org/show_bug.cgi?id=495996

--- Comment #3 from Joshua Goins <josh at redstrate.com> ---
Git commit 8ec7279b9771cf1aa5701704e7795cc3c7d41b17 by Joshua Goins.
Committed on 20/01/2025 at 01:01.
Pushed by redstrate into branch 'master'.

Improve refreshing the main timeline, other misc fixes

Currently refreshing the main timeline involves throwing everything away
and starting fresh, but we don't need to do that. Now we use the
pagination to load all newer posts, and we're a bit smarter about it
too.

An additional bug that I think I fixed is receiving duplicate posts. Now
fetchedTimeline and handleEvent shouldn't add posts we have already.

A bug that I ran into but not sure if it's ever resulted in a crash is
not checking if posts is empty before calling first() on it, but good to
fix anyway.
Related: bug 477420

M  +1    -1    src/autotests/data/status-poll.json
M  +10   -4    src/autotests/timelinetest.cpp
M  +30   -11   src/timeline/maintimelinemodel.cpp
M  +15   -0    src/timeline/timelinemodel.cpp

https://invent.kde.org/network/tokodon/-/commit/8ec7279b9771cf1aa5701704e7795cc3c7d41b17

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list