From 825bec80b08068d1f11e964a9a8c9fbd42570dcc Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 20 Dec 2021 13:34:22 +0530 Subject: [PATCH] Prefer reply over thread when both are available --- src/matrix/room/timeline/relations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/relations.js b/src/matrix/room/timeline/relations.js index 4009d8c4..2d9217ad 100644 --- a/src/matrix/room/timeline/relations.js +++ b/src/matrix/room/timeline/relations.js @@ -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) {