From 59b428100bd7bf33dbbde04dee98c8122a005e78 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 10 Sep 2023 12:46:57 -0500 Subject: [PATCH] Sync local sessions when network reconnects --- layouts/default.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 202f73ac..56e22018 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -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) } }