mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16:02:26 +00:00
The logged-out delete error: handleWatchHistoryRemoval threw "watch-history-disabled" whenever the service wasn't synced (isEnabled() false) — which is the NORMAL state for a logged-out user — so local deletes errored with "Watch history sync is not available right now" and never touched the local queue. It conflated "not synced to relays" with "disabled". Now it only rejects when neither synced NOR local history is supported. For a local-only actor it proceeds with the snapshot (replace), which rewrites the local queue (replaceLocalQueue), and SKIPS the relay publish (gated on synced) so a session-actor list is never pushed to relays. Success copy reflects local vs synced. Tests + mutation-verified: local-only removal isn't rejected, snapshots with replace, and does NOT publish to relays; synced removal still publishes; truly disabled (no sync, no local) is still rejected. Reverting the gate fails the local cases. Build + full lint green. Co-Authored-By: Claude Opus 4.8 <[email protected]>