Allow missing sender in event
This commit is contained in:
parent
d90d1ca8db
commit
d804df84a7
1 changed files with 1 additions and 1 deletions
|
@ -1182,7 +1182,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
|||
this.props.alwaysShowTimestamps || this.state.hover,
|
||||
);
|
||||
|
||||
const isOwnEvent = this.props.mxEvent.sender.userId === MatrixClientPeg.get().getUserId();
|
||||
const isOwnEvent = this.props.mxEvent?.sender?.userId === MatrixClientPeg.get().getUserId();
|
||||
|
||||
// tab-index=-1 to allow it to be focusable but do not add tab stop for it, primarily for screen readers
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue