From 262dd0d207a78322761c098a3ec340299f33af42 Mon Sep 17 00:00:00 2001 From: mrwnslz Date: Fri, 2 Oct 2026 15:30:06 +0200 Subject: [PATCH] =?UTF-8?q?Player-Sync=20im=20Web:=20nur=20angenommene=20e?= =?UTF-8?q?igene=20Berichte=20z=C3=A4hlen=20als=20letzter=20Stand,=20sw=20?= =?UTF-8?q?v60?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- static/js/podcasts-web.js | 7 +++++-- static/js/sw.js | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/podcasts-web.js b/static/js/podcasts-web.js index 6ce2a64..559192c 100644 --- a/static/js/podcasts-web.js +++ b/static/js/podcasts-web.js @@ -1090,8 +1090,11 @@ sync.sending--; if (st) { if (done && sync.doneCmd === done) sync.doneCmd = null; - sync.ownAt = st.server_time; - store('sync_at', sync.ownAt); + // Only a report the server took is our last change (an ignored one isn't). + if (st.device_id === DEVICE_ID) { + sync.ownAt = st.server_time; + store('sync_at', sync.ownAt); + } } heard(st); return st; diff --git a/static/js/sw.js b/static/js/sw.js index efd7235..4fb34d3 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v59'; +const CACHE = 'diora-v60'; const SHELL = [ '/static/css/app.css', '/static/js/app.js',