Note creator V2 styles

This commit is contained in:
2023-08-23 13:19:48 +01:00
parent d4bbd4e87d
commit fb29cfa952
16 changed files with 285 additions and 276 deletions

View File

@ -152,6 +152,9 @@ export class FlatNoteStore extends HookedNoteStore<Readonly<Array<TaggedNostrEve
} else {
const existing = this.#events.find(b => b.id === a.id);
if (existing) {
if(!Boolean(Object.getOwnPropertyDescriptor(existing, "relays")?.writable)) {
debugger;
}
existing.relays = appendDedupe(existing.relays, a.relays);
}
}
@ -239,7 +242,7 @@ export class ReplaceableNoteStore extends HookedNoteStore<Readonly<TaggedNostrEv
takeSnapshot() {
if (this.#event) {
return Object.freeze({ ...this.#event });
return { ...this.#event };
}
}
}