chore: remove watch history logic

This commit is contained in:
thePR0M3TH3AN committed 2025-10-02 11:43:15 -04:00
1 parent 32ab19e915
commit 48410b1abb
9 files changed
+109 -6728

No files matched your search

-7
View File
@@ -530,7 +530,6 @@ async function testRecordVideoViewEmitsJsonPayload() {
const originalEnsureSessionActor = nostrClient.ensureSessionActor;
const originalSessionActor = nostrClient.sessionActor;
const originalPubkey = nostrClient.pubkey;
const originalUpdateHistory = nostrClient.updateWatchHistoryList;
const originalWarn = console.warn;
const originalNostrTools = window.NostrTools;
@@ -582,11 +581,6 @@ async function testRecordVideoViewEmitsJsonPayload() {
};
nostrClient.pubkey = "";
nostrClient.updateWatchHistoryList = async () => {
throw new Error(
"recordVideoView should not invoke updateWatchHistoryList during view publishes"
);
};
try {
const result = await nostrClient.recordVideoView(pointer, {
@@ -633,7 +627,6 @@ async function testRecordVideoViewEmitsJsonPayload() {
nostrClient.ensureSessionActor = originalEnsureSessionActor;
nostrClient.sessionActor = originalSessionActor;
nostrClient.pubkey = originalPubkey;
nostrClient.updateWatchHistoryList = originalUpdateHistory;
console.warn = originalWarn;
window.NostrTools = originalNostrTools;
}