nilsbraden / ttrss-reader-fork

An Android-Client for the self-hosted Tiny Tiny RSS feedreader
https://www.nilsbraden.de/TTRSS-Reader/
151 stars 40 forks source link

unstarred items not syncing from server #364

Open jr4 opened 6 years ago

jr4 commented 6 years ago

If I star items on android, it syncs to the server correctly. If I then unstar the articles on the ttrss web app, the unstarred status does not sync down, the items remain starred on android.

jr4 commented 6 years ago

Seems due to the caching. getHeadlines has since_id > the starred articles. If I mess around with it I can get it to resync, in which case it restars all the items that I unstarred!

nilsbraden commented 6 years ago

The sinceId has some side-effects, thats right. I'm not sure how to resolve this though. Since TTRSS uses a very small amount of data anyway it might be possible to leave this optimization out in some cases or just use a fixed offset for the ID like -1000 or -10% (which would probably lead to other strange side-effects though)... Last time I checked the server API was not really cache friendly.