fix: get replies function (#213)

This commit is contained in:
雨宮蓮
2024-06-19 21:02:33 +07:00
committed by GitHub
parent 6c26f8967b
commit f8280ec8ee
4 changed files with 74 additions and 55 deletions

View File

@@ -10,7 +10,7 @@ import { LumeEvent } from "./event";
export class NostrQuery {
static #toLumeEvents(richEvents: RichEvent[]) {
const events = richEvents.map((item) => {
const nostrEvent = JSON.parse(item.raw) as NostrEvent;
const nostrEvent: NostrEvent = JSON.parse(item.raw);
if (item.parsed) {
nostrEvent.meta = item.parsed;