bug: relays undefined

This commit is contained in:
Kieran 2023-04-14 18:06:11 +01:00
parent bc923187bc
commit 7ee1b98531
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ export class EventPublisher {
if (thread.root || thread.replyTo) {
eb.tag(["e", thread.root?.Event ?? thread.replyTo?.Event ?? "", "", "root"]);
}
eb.tag(["e", replyTo.id, replyTo.relays[0] ?? "", "reply"]);
eb.tag(["e", replyTo.id, replyTo.relays?.[0] ?? "", "reply"]);
for (const pk of thread.pubKeys) {
if (pk === this.#pubKey) {