Refine comment thread service wiring

This commit is contained in:
thePR0M3TH3AN committed 2025-10-24 15:54:25 -04:00
1 parent dbd1d85d3d
commit 92962f3b3d
3 files changed
+707 -20

No files matched your search

+10 -4
View File
@@ -82,8 +82,11 @@ async function testThreadFlow() {
};
const service = new CommentThreadService({
nostrClient,
app,
fetchVideoComments: (...args) => nostrClient.fetchVideoComments(...args),
subscribeVideoComments: (...args) =>
nostrClient.subscribeVideoComments(...args),
getProfileCacheEntry: (pubkey) => app.getProfileCacheEntry(pubkey),
batchFetchProfiles: (pubkeys) => app.batchFetchProfiles(pubkeys),
hydrationDebounceMs: 0,
});
@@ -217,8 +220,11 @@ async function testTeardownCancelsHydration() {
};
const service = new CommentThreadService({
nostrClient,
app,
fetchVideoComments: (...args) => nostrClient.fetchVideoComments(...args),
subscribeVideoComments: (...args) =>
nostrClient.subscribeVideoComments(...args),
getProfileCacheEntry: (pubkey) => app.getProfileCacheEntry(pubkey),
batchFetchProfiles: (pubkeys) => app.batchFetchProfiles(pubkeys),
hydrationDebounceMs: 50,
});