fix: relays tag missing

This commit is contained in:
2024-10-25 18:04:20 +01:00
parent eaaa7edc78
commit 8d3de80e1e
3 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ export class KeyedReplaceableNoteStore extends HookedNoteStore {
const existing = this.#events.get(keyOnEvent);
if (a.created_at > (existing?.created_at ?? 0)) {
if (existing) {
a.relays = dedupe([...existing.relays, ...a.relays]);
a.relays = dedupe([...(existing.relays ?? []), ...a.relays]);
}
this.#events.set(keyOnEvent, a);
changes.push(a);