Fix chat zap for hosted streams

This commit is contained in:
2023-07-05 13:38:54 +01:00
parent b89c8db656
commit 672f1dd077
9 changed files with 442 additions and 438 deletions

View File

@ -15,10 +15,14 @@ export function useLiveChatFeed(link: NostrLink) {
rb.withOptions({
leaveOpen: true,
});
const aTag = `${link.kind}:${link.author}:${link.id}`;
rb.withFilter()
.kinds([EventKind.ZapReceipt, LIVE_STREAM_CHAT])
.tag("a", [`${link.kind}:${link.author}:${link.id}`])
.kinds([LIVE_STREAM_CHAT])
.tag("a", [aTag])
.limit(100);
rb.withFilter()
.kinds([EventKind.ZapReceipt])
.tag("a", [aTag]);
return rb;
}, [link]);