Adding renderThreadInfo comment to explain data accessor
This commit is contained in:
parent
904147b194
commit
93fc24c875
1 changed files with 6 additions and 0 deletions
|
@ -546,6 +546,12 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
return null;
|
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 room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
||||||
const thread = room.threads.get(this.props.mxEvent.getId());
|
const thread = room.threads.get(this.props.mxEvent.getId());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue