Merge pull request #1087 from PR0M3TH3AN/fix-console-log-spam-issues-1377412273382264295

fix(nostr): restore video grid loading and session actor creation
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-05 21:28:29 -05:00
commit 4bc2eee9fe
1 file changed
+1 -16
+1 -16
View File
@@ -476,22 +476,7 @@ export function shimLegacySimplePoolMethods(pool) {
if (subscribeMap) {
closer = subscribeMap(requests, subscribeParams);
} else if (subscribeMany) {
// subscribeMany only accepts a single filter, so reuse subscribeMap-style batching
// by issuing one subscription per filter.
const subs = filterList.map((filter) =>
subscribeMany(relayList, filter, subscribeParams)
);
closer = {
close: (reason) => {
subs.forEach((sub) => {
try {
sub?.close?.(reason);
} catch (error) {
devLogger.warn("[nostr] Failed to close SimplePool subscription.", error);
}
});
},
};
closer = subscribeMany(relayList, filterList, subscribeParams);
} else if (subscribeSingle && filterList.length) {
closer = subscribeSingle(relayList, filterList[0], subscribeParams);
}