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

Fix crash on opening notification panel
pull/21833/head
Michael Telatynski 2021-05-17 17:46:50 +01:00 committed by GitHub
commit 9182bff86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ export default class MessagePanel extends React.Component {
}
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() {