Allow missing sender in event

pull/21833/head
Germain Souquet 2021-07-01 15:16:47 +01:00
parent d90d1ca8db
commit d804df84a7
1 changed files with 1 additions and 1 deletions

View File

@ -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 (