fix: relays tag missing
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@snort/system-react",
|
"name": "@snort/system-react",
|
||||||
"version": "1.5.1",
|
"version": "1.5.3",
|
||||||
"description": "React hooks for @snort/system",
|
"description": "React hooks for @snort/system",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
@ -17,7 +17,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@snort/shared": "^1.0.17",
|
"@snort/shared": "^1.0.17",
|
||||||
"@snort/system": "^1.5.1",
|
"@snort/system": "^1.5.3",
|
||||||
"react": "^18.2.0"
|
"react": "^18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@snort/system",
|
"name": "@snort/system",
|
||||||
"version": "1.5.2",
|
"version": "1.5.3",
|
||||||
"description": "Snort nostr system package",
|
"description": "Snort nostr system package",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -72,7 +72,7 @@ export class KeyedReplaceableNoteStore extends HookedNoteStore {
|
|||||||
const existing = this.#events.get(keyOnEvent);
|
const existing = this.#events.get(keyOnEvent);
|
||||||
if (a.created_at > (existing?.created_at ?? 0)) {
|
if (a.created_at > (existing?.created_at ?? 0)) {
|
||||||
if (existing) {
|
if (existing) {
|
||||||
a.relays = dedupe([...existing.relays, ...a.relays]);
|
a.relays = dedupe([...(existing.relays ?? []), ...a.relays]);
|
||||||
}
|
}
|
||||||
this.#events.set(keyOnEvent, a);
|
this.#events.set(keyOnEvent, a);
|
||||||
changes.push(a);
|
changes.push(a);
|
||||||
|
Reference in New Issue
Block a user