feat: conversations (#277)

This commit is contained in:
Cody Tseng
2025-04-15 22:33:53 +08:00
committed by GitHub
parent 1c3e54c895
commit 3c81a13acb
25 changed files with 417 additions and 350 deletions

View File

@@ -97,12 +97,16 @@ export default function ReplyNoteList({
const seenOn = client.getSeenEventRelayUrls(rootInfo.id)
relayUrls.unshift(...seenOn)
const { closer, timelineKey } = await client.subscribeTimeline(
relayUrls.slice(0, 5),
{
'#e': [rootInfo.id],
kinds: [kinds.ShortTextNote],
limit: LIMIT
},
[
{
urls: relayUrls.slice(0, 5),
filter: {
'#e': [rootInfo.id],
kinds: [kinds.ShortTextNote],
limit: LIMIT
}
}
],
{
onEvents: (evts, eosed) => {
if (evts.length > 0) {