diff --git a/src/lib/draft-event.ts b/src/lib/draft-event.ts index 4d531e9..be3f0d1 100644 --- a/src/lib/draft-event.ts +++ b/src/lib/draft-event.ts @@ -660,8 +660,7 @@ async function extractRelatedEventIds(content: string, parentEvent?: Event) { ? buildETagWithMarker(rootEvent.id, rootEvent.pubkey, hint, 'root') : buildETagWithMarker(rootEventHexId, rootEventPubkey, hint, 'root') } - } - if (_rootTag?.type === 'a') { + } else if (_rootTag?.type === 'a') { // Legacy parentTag = buildETagWithMarker(parentEvent.id, parentEvent.pubkey, '', 'reply') const [, coordinate, hint] = _rootTag.tag