Sync local sessions when network reconnects

This commit is contained in:
advplyr 2023-09-10 12:46:57 -05:00
parent 36e0c91e27
commit 59b428100b

View file

@ -41,8 +41,12 @@ export default {
if (timeSinceDisconnect > 5000) {
console.log('Time since disconnect was', timeSinceDisconnect, 'sync with server')
setTimeout(() => {
// TODO: Some issue here
this.syncLocalMediaProgress()
if (this.$platform === 'ios') {
// TODO: Update ios to not use this
this.syncLocalMediaProgress()
} else {
this.syncLocalSessions()
}
}, 4000)
}
}