Repository navigation
feature(mobile): Hardening synchronization mechanism + Pull to refresh - #2085
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
This looks good Fynn! Thank you very much. I can confirm that it fixed the error of the unique index. I am still observing the mismatching of the icon and some rendering issue on the main timeline when the uploading process is in progress Step to reproduce is as follows.
The workaround is to sign out and sign back in, it would then show the correct icon Let me know if you can reproduce the issue. |
f6fdd36 to
d332c78
Compare
Very good!
I was able to reproduce the issue. The reason is twofold: As a bonus, I've implemented pull to refresh on main timeline (see the updated PR description) |
This PR tries to fix several issues with the new client database sync:
and adds pull to refresh on the main timeline:
You can refresh assets on the main timeline with the usual material design refresh gesture by pulling down. If you that twice (within 2 seconds after the first refresh finished), a full clean and reload is performed, i.e. all assets and albums are purged from the DB and re-synced from device and server.
Changes:
localId&deviceId: allows duplicates from web/cli or uploaded from the same mobile device with different usersAssetTypetoAssetAsset(as Isar always returns dates in local time)==andhashCodeforAssetso that changes to the list of assets actually result in a re-render of the timelineSyncServiceonNewAssetUploaded