From 4e18306d066ce6ee7592eb979a8678127f18cbf4 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 3 Oct 2026 12:56:07 +0200 Subject: [PATCH] fix(portals): a reset finished under another playlist leaves its store alone The store positions are only reloaded for the playlist the reset started on while that playlist is still current; a playlist switched meanwhile keeps its own positions. Co-Authored-By: Claude Fable 5.1 --- .../src/lib/vod-details/vod-details-menu.service.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/portal/xtream/feature/src/lib/vod-details/vod-details-menu.service.ts b/libs/portal/xtream/feature/src/lib/vod-details/vod-details-menu.service.ts index 2ffc9151b..4a7f74004 100644 --- a/libs/portal/xtream/feature/src/lib/vod-details/vod-details-menu.service.ts +++ b/libs/portal/xtream/feature/src/lib/vod-details/vod-details-menu.service.ts @@ -198,7 +198,12 @@ export class VodDetailsMenuService { this.bindings()?.vodId() !== vodId || this.xtreamStore.currentPlaylist()?.id !== playlistId ) { - void this.xtreamStore.loadAllPositions(playlistId); + // Another movie of the same playlist still gets fresh store + // badges; another playlist's store must not be replaced by the + // old playlist's positions. + if (this.xtreamStore.currentPlaylist()?.id === playlistId) { + void this.xtreamStore.loadAllPositions(playlistId); + } return; } // A read still in flight started from the pre-write row; letting it