mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-05 17:11:40 +01:00
Prefer reply over thread when both are available
This commit is contained in:
parent
78c79b148a
commit
825bec80b0
@ -30,7 +30,7 @@ export function createAnnotation(targetId, key) {
|
||||
}
|
||||
|
||||
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user