fix: improve reply detection logic
This commit is contained in:
parent
4ea5ea1705
commit
830362b941
1 changed files with 5 additions and 1 deletions
|
|
@ -61,7 +61,11 @@ export function getParentETag(event?: Event) {
|
||||||
if (!tag) {
|
if (!tag) {
|
||||||
const embeddedEventIds = getEmbeddedNoteBech32Ids(event)
|
const embeddedEventIds = getEmbeddedNoteBech32Ids(event)
|
||||||
tag = event.tags.findLast(
|
tag = event.tags.findLast(
|
||||||
([tagName, tagValue]) => tagName === 'e' && !!tagValue && !embeddedEventIds.includes(tagValue)
|
([tagName, tagValue, , marker]) =>
|
||||||
|
tagName === 'e' &&
|
||||||
|
!!tagValue &&
|
||||||
|
marker !== 'mention' &&
|
||||||
|
!embeddedEventIds.includes(tagValue)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
return tag
|
return tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue