Others' downloads stay off your page (#294)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-19 18:12:55 +00:00
parent 7af6153d18
commit 995ee05557
2 changed files with 6 additions and 0 deletions

View File

@@ -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). - 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). - 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 ## [1.1.0] - 2026-10-16
### Added ### Added

View File

@@ -23,6 +23,8 @@ function connect(){
const preloadSoon=soon(preloadLists,2000); const preloadSoon=soon(preloadLists,2000);
sse.onmessage=m=>{ sse.onmessage=m=>{
let ev; try{ ev=JSON.parse(m.data) }catch{ return } 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'){ if(ev.ev==='progress'){
const pct=ev.total?ev.done/ev.total*100:0; const pct=ev.total?ev.done/ev.total*100:0;
// Only the row actually downloading. Without the enclosure id this used to paint // Only the row actually downloading. Without the enclosure id this used to paint