From e4c00d1123d711fd3fa2323a629be5f67d220fd7 Mon Sep 17 00:00:00 2001 From: Germain Date: Thu, 25 Nov 2021 15:40:38 +0000 Subject: [PATCH] Open thread view when linking thread root (#7195) --- src/components/structures/RoomView.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 98d55f8ae6..bfd89937b8 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -420,6 +420,14 @@ export class RoomView extends React.Component { } else { newState.initialEventId = initialEventId; newState.isInitialEventHighlighted = RoomViewStore.isInitialEventHighlighted(); + + if (thread && initialEvent?.isThreadRoot) { + dispatchShowThreadEvent( + thread.rootEvent, + initialEvent, + RoomViewStore.isInitialEventHighlighted(), + ); + } } }