Restore canonical watch history snapshot format

This commit is contained in:
thePR0M3TH3AN committed 2025-10-01 18:47:57 -04:00
1 parent af7738b4d8
commit ecd3f4026e
6 files changed
+122 -8

No files matched your search

+23
View File
@@ -4283,6 +4283,29 @@ class bitvidApp {
}
button.dataset.navBound = "true";
button.addEventListener("click", () => {
if (name === "history") {
let actorCandidate;
if (typeof this.pubkey === "string" && this.pubkey.trim()) {
actorCandidate = this.pubkey.trim();
} else if (
typeof window?.app?.pubkey === "string" &&
window.app.pubkey.trim()
) {
actorCandidate = window.app.pubkey.trim();
}
void nostrClient
.fetchWatchHistory(actorCandidate, { forceRefresh: true })
.catch((error) => {
if (isDevMode) {
console.warn(
"[profileModal] Failed to prefetch watch history on navigation:",
error
);
}
});
}
this.selectProfilePane(name);
});
});