mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 18:32:20 +02:00
Allow missing sender in event
This commit is contained in:
parent
d90d1ca8db
commit
d804df84a7
@ -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…
x
Reference in New Issue
Block a user