You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide some way to get a LocalCollection from the collection ID, probably as method of LocalDataStore (and then select the data store according to the collection type).
If we have a LocalCollection that has been updated, we can compare the sync-token with localCollection.lastSyncState and ignore the push if the collection is already up-to-date.
Currently DAVx⁵ enqueues a sync worker whenever it receives a push message.
However the
sync-token
property of the push message should be checked, and if thesync-token
is already up-to-date, no sync should be enqueued.This avoids redundant sync jobs which are caused by own uploads:
sync-token
tonew-sync-token
. Server sends push message, but it will take a few seconds to arrive.sync-token=new-sync-token
.sync-token=new-sync-token
. Because the collection is already up-to-date, no new sync worker is enqueued.Possible way to implement:
LocalCollection
from the collection ID, probably as method ofLocalDataStore
(and then select the data store according to the collection type).LocalCollection
that has been updated, we can compare thesync-token
withlocalCollection.lastSyncState
and ignore the push if the collection is already up-to-date.Depends on bitfireAT/ical4android#171
Depends on https://github.com/bitfireAT/davx5/issues/603 (not strictly, but should be done afterwards because the database collection ID of local collections is required)
The text was updated successfully, but these errors were encountered: