Skip to content

Retry pending article read changes when connectivity returns - #1359

Open
VaclavSynacek wants to merge 1 commit into
ReadYouApp:mainfrom
VaclavSynacek:retry-read-sync-on-reconnect
Open

VaclavSynacek wants to merge 1 commit into
ReadYouApp:mainfrom
VaclavSynacek:retry-read-sync-on-reconnect

Conversation

@VaclavSynacek

Copy link
Copy Markdown

I have been using ReadYou for last like 6 months daily. It i very impressive and I like it a lot. I often read offline (bus committing, tunnels, etc.) and would like the articles read to be synced to server after I reconnect to internet. I am using GoogleReader/FreshRSS backend. This is quite a minimal pull request to add that functionality. Intentionally does not solve the batch read of "Mark all as read" as that is different part of the codebase and not really my daily use case.

But obviously this requires one more permission to ask, so not sure that is acceptable.

@ibrahim-iqbal ibrahim-iqbal left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and small. Worth knowing that registerDefaultNetworkCallback calls onAvailable right away when a network is already up, so this also syncs once at startup. That seems like what you want here anyway. Passing pendingSyncDiffs.toMap() instead of the flow value makes sense since the network trigger has no value of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants