Prefer reply over thread when both are available

This commit is contained in:
RMidhunSuresh 2021-12-20 13:34:22 +05:30
parent 78c79b148a
commit 825bec80b0

View file

@ -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) {