forked from mystiq/hydrogen-web
Prefer reply over thread when both are available
This commit is contained in:
parent
78c79b148a
commit
825bec80b0
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ export function createAnnotation(targetId, key) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getRelationTarget(relation) {
|
export function getRelationTarget(relation) {
|
||||||
return relation.event_id || relation["m.in_reply_to"]?.event_id
|
return relation["m.in_reply_to"]?.event_id || relation.event_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setRelationTarget(relation, target) {
|
export function setRelationTarget(relation, target) {
|
||||||
|
|
Loading…
Reference in a new issue