feat: web (#6)

This commit is contained in:
Cody Tseng 2024-11-16 15:44:37 +08:00 committed by GitHub
parent ab667afc30
commit 26c2512d61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
60 changed files with 937 additions and 547 deletions

View file

@ -47,6 +47,9 @@ export default function NoteList({
setUntil(events[events.length - 1].created_at - 1)
}
setInitialized(true)
processedEvents.forEach((e) => {
client.addEventToCache(e)
})
},
onNew: (event) => {
if (!isReplyNoteEvent(event)) {
@ -100,6 +103,9 @@ export default function NoteList({
}
setUntil(sortedEvents[sortedEvents.length - 1].created_at - 1)
processedEvents.forEach((e) => {
client.addEventToCache(e)
})
}
const showNewEvents = () => {