Merge pull request #6426 from matrix-org/gsouquet/event-tile-null-guard

Add null guard for room prop in EventTile
This commit is contained in:
Germain
2021-07-21 11:56:43 +01:00
committed by GitHub

View File

@@ -743,7 +743,7 @@ export default class MessagePanel extends React.Component<IProps, IState> {
enableFlair={this.props.enableFlair}
showReadReceipts={this.props.showReadReceipts}
callEventGrouper={callEventGrouper}
hideSender={this.props.room.getMembers().length <= 2 && this.props.layout === Layout.Bubble}
hideSender={this.props.room?.getMembers().length <= 2 && this.props.layout === Layout.Bubble}
/>
</TileErrorBoundary>,
);