In the current version of the app, because recent mistakes are stored in the local db, performing a full refresh from the WK server causes those mistakes to be lost, which can be very annoying if you do this accidentally.
This PR fixes that by:
Before refresh, load recent mistakes in last 24 hrs from local db.
After refresh and db updated, re-insert the recent mistake data into the local db.
NOTE: This does rely on subject IDs remaining the same before/after refresh. If only this data was easily available through the API 😞 Ideally these sorts of things this app stores would get synced to iCloud and thus show up on both macOS and iOS if you were using both devices or something, I suppose...
I wonder if there's a way to get recent mistakes incorporating any new data the refresh provides, because people might have done reviews on another device
In the current version of the app, because recent mistakes are stored in the local db, performing a full refresh from the WK server causes those mistakes to be lost, which can be very annoying if you do this accidentally.
This PR fixes that by:
NOTE: This does rely on subject IDs remaining the same before/after refresh. If only this data was easily available through the API 😞 Ideally these sorts of things this app stores would get synced to iCloud and thus show up on both macOS and iOS if you were using both devices or something, I suppose...