mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Use null guarded thread getter in EventTile (#7646)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
debf4caade
commit
00e868f371
1 changed files with 2 additions and 2 deletions
|
@ -383,8 +383,8 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
constructor(props: IProps, context: React.ContextType<typeof MatrixClientContext>) {
|
constructor(props: IProps, context: React.ContextType<typeof MatrixClientContext>) {
|
||||||
super(props, context);
|
super(props, context);
|
||||||
|
|
||||||
const room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
this.context = context;
|
||||||
const thread = room.threads?.get(this.props.mxEvent.getId());
|
const thread = this.thread;
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
// Whether the action bar is focused.
|
// Whether the action bar is focused.
|
||||||
|
|
Loading…
Reference in a new issue