From 995ee05557094321563ae5e77f30d3a2f5ce00d2 Mon Sep 17 00:00:00 2001 From: rays Date: Mon, 19 Oct 2026 18:12:55 +0000 Subject: [PATCH] Others' downloads stay off your page (#294) Co-Authored-By: Claude Opus 5.5 --- web/CHANGELOG.md | 4 ++++ web/src/events.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/web/CHANGELOG.md b/web/CHANGELOG.md index 1e804d1..2935ede 100644 --- a/web/CHANGELOG.md +++ b/web/CHANGELOG.md @@ -29,6 +29,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - A Signal's dialog says how far back it reads, and that an edit reads again only what was picked out (#276). - Each request's span in Tempo is named for its method and path, such as `GET /api/entries`, instead of `ipx-web` for every one (#286). +### Fixed + +- Another person's download, its progress and its failure, no longer shows on your page (#294). + ## [1.1.0] - 2026-10-16 ### Added diff --git a/web/src/events.ts b/web/src/events.ts index 979eef2..77e69f6 100644 --- a/web/src/events.ts +++ b/web/src/events.ts @@ -23,6 +23,8 @@ function connect(){ const preloadSoon=soon(preloadLists,2000); sse.onmessage=m=>{ let ev; try{ ev=JSON.parse(m.data) }catch{ return } + // Someone else's download is theirs: its file's name and its failure stay off this page (#294). + if((ev.ev==='progress'||ev.ev==='download_error')&&!mine(ev.feed)) return; if(ev.ev==='progress'){ const pct=ev.total?ev.done/ev.total*100:0; // Only the row actually downloading. Without the enclosure id this used to paint