mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-07 21:32:51 +00:00
Refine comment thread service wiring
This commit is contained in:
1 parent
dbd1d85d3d
commit
92962f3b3d
3 files changed
+707
-20
No files matched your search
@@ -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,
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user