mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
chore: remove watch history logic
This commit is contained in:
1 parent
32ab19e915
commit
48410b1abb
9 files changed
+109
-6728
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user