NicolasConstant / sengi

Mastodon & Pleroma Multi-account Desktop Client
https://nicolasconstant.github.io/sengi/
GNU Affero General Public License v3.0
534 stars 35 forks source link

fix new item count in slow mode #499

Closed rpetti closed 1 year ago

rpetti commented 1 year ago

Currently when slow mode is enabled, the size of the buffer is used for displaying the count of new items since the last manual load. Unfortunately the buffer seems to have a max size of 60 items, and upon hitting 60 it jumps down to 40.

Screenshot 2022-11-26 135320

This PR tracks the new item count separately from the amount of status items currently in the buffer, so the user knows how many posts there have been since the last manual load.

Screenshot 2022-11-26 135340

This is a partial fix for #469. It does not change the current manual load behavior, which is to jump to the latest post, it only changes the new item count that's displayed before manual loading.

dbrewood commented 1 year ago

Yep I've seen the issue as I use slow mode, and it has stopped me using Sengi (I didn't know that caused the issue). If I turned slow mode off would that fix the issue until it was fixed properly?

rpetti commented 1 year ago

If I turned slow mode off would that fix the issue until it was fixed properly?

If you turn slow mode off then new items will load immediately, so the new item count will never be displayed.

dbrewood commented 1 year ago

Darn.... okay I've turned Slow Mode back on again.....