Merge branch 'master' into develop

This commit is contained in:
RiotRobot 2022-01-31 14:57:13 +00:00
commit a25fea9f96
4 changed files with 193 additions and 10 deletions

View file

@ -633,7 +633,7 @@ export default class EventTile extends React.Component<IProps, IState> {
* We currently have no reliable way to discover than an event is a thread
* when we are at the sync stage
*/
const room = this.context.getRoom(this.props.mxEvent.getRoomId());
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
const thread = room?.threads.get(this.props.mxEvent.getId());
if (!thread || thread.length === 0) {