1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Merge pull request #6047 from robintown/fix-notification-panel

Fix crash on opening notification panel
This commit is contained in:
Michael Telatynski
2021-05-17 17:46:50 +01:00
committed by GitHub

View File

@@ -473,7 +473,7 @@ export default class MessagePanel extends React.Component {
} }
get _roomHasPendingEdit() { get _roomHasPendingEdit() {
return localStorage.getItem(`mx_edit_room_${this.props.room.roomId}`); return this.props.room && localStorage.getItem(`mx_edit_room_${this.props.room.roomId}`);
} }
_getEventTiles() { _getEventTiles() {