fix: null relay tag in event reply
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
d3e6ddc64c
commit
f9a0516718
@ -53,7 +53,7 @@ export class NostrLink implements ToNostrEventTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toEventTag(marker?: string) {
|
toEventTag(marker?: string) {
|
||||||
const relayEntry = this.relays ? [this.relays[0]] : [];
|
const relayEntry = this.relays?.at(0) ? [this.relays[0]] : [];
|
||||||
|
|
||||||
if (marker) {
|
if (marker) {
|
||||||
if (relayEntry.length === 0) {
|
if (relayEntry.length === 0) {
|
||||||
|
@ -25,6 +25,7 @@ export interface NostrEvent {
|
|||||||
tags: Array<Array<string>>;
|
tags: Array<Array<string>>;
|
||||||
content: string;
|
content: string;
|
||||||
sig: string;
|
sig: string;
|
||||||
|
relays?: Array<string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type ReqCommand = ["REQ", id: string, ...filters: Array<ReqFilter>];
|
export type ReqCommand = ["REQ", id: string, ...filters: Array<ReqFilter>];
|
||||||
|
Loading…
Reference in New Issue
Block a user