Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 00e868f

Browse files
Germaint3chguy
andauthored
Use null guarded thread getter in EventTile (#7646)
Co-authored-by: Michael Telatynski <[email protected]>
1 parent debf4ca commit 00e868f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,8 @@ export default class EventTile extends React.Component<IProps, IState> {
383383
constructor(props: IProps, context: React.ContextType<typeof MatrixClientContext>) {
384384
super(props, context);
385385

386-
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
387-
const thread = room.threads?.get(this.props.mxEvent.getId());
386+
this.context = context;
387+
const thread = this.thread;
388388

389389
this.state = {
390390
// Whether the action bar is focused.

0 commit comments

Comments
 (0)