mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 06:21:03 +02:00
Open thread view when linking thread root (#7195)
This commit is contained in:
parent
508d4d70b6
commit
e4c00d1123
@ -420,6 +420,14 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
|
|||||||
} else {
|
} else {
|
||||||
newState.initialEventId = initialEventId;
|
newState.initialEventId = initialEventId;
|
||||||
newState.isInitialEventHighlighted = RoomViewStore.isInitialEventHighlighted();
|
newState.isInitialEventHighlighted = RoomViewStore.isInitialEventHighlighted();
|
||||||
|
|
||||||
|
if (thread && initialEvent?.isThreadRoot) {
|
||||||
|
dispatchShowThreadEvent(
|
||||||
|
thread.rootEvent,
|
||||||
|
initialEvent,
|
||||||
|
RoomViewStore.isInitialEventHighlighted(),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user