miniflux / v2

Minimalist and opinionated feed reader
https://miniflux.app
Apache License 2.0
6.65k stars 706 forks source link

Negative unread count #1388

Open iyzana opened 2 years ago

iyzana commented 2 years ago

Screenshot_20220308-123717

I don't have a reproduction for this so feel free to close this if it's not actionable, but these are the circumstances I experienced this in:

Miniflux version: 2.0.35

I use Miniflux from Firefox for Android as a PWA. In this situation I had five entries from three feeds out of which I read one by clicking "External link" and then marked the remaining four as read one after the other by swiping. One of my feeds often fails to refresh. Reloading the page fixed the problem, I assume it was a UI bug. I assume the network connection was stable, because I'm on the same network as the Miniflux (running on a Raspberry Pi), although connected over WiFi.

thiagowfx commented 2 years ago

If reloading the page fixed the issue, this may be hard to diagnose or reproduce for a bug fix. If you manage to reproduce it again, try adding the repro steps.

There was a bug about the mark-as-read swipe action that was fixed recently. Maybe it was the culprit?

thiagowfx commented 2 years ago

See https://github.com/miniflux/v2/pull/1340 and https://github.com/miniflux/v2/pull/1358

iyzana commented 2 years ago

I found a reproduction and the issue still persists in version 2.0.36. It's simpler than I assumed.

The Unread count goes down by two even though only one article has been marked as read. The same thing works with swiping too (though is a bit harder to execute) by quickly swiping an article to the left twice.

This is probably easier to do with a bad network connection or, in my case, an overworked Raspberry Pi :D