From 93fc24c875e15526c10cf29cd60443d78d5798c4 Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Fri, 15 Oct 2021 14:47:02 +0100 Subject: [PATCH] Adding renderThreadInfo comment to explain data accessor --- src/components/views/rooms/EventTile.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 467481c679..44bf500f50 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -546,6 +546,12 @@ export default class EventTile extends React.Component { return null; } + /** + * Accessing the threads value through the room due to a race condition + * that will be solved when there are proper backend support for threads + * We currently have no reliable way to discover than an event is a thread + * when we are at the sync stage + */ const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId()); const thread = room.threads.get(this.props.mxEvent.getId());