Merge pull request #2767 from matrix-org/travis/misc-status-message-fixes

Misc fixes to StatusMessageContextMenu
This commit is contained in:
Travis Ralston 2019-03-08 08:20:28 -07:00 committed by GitHub
commit 47b6356e10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,8 +25,6 @@ export default class StatusMessageContextMenu extends React.Component {
static propTypes = {
// js-sdk User object. Not required because it might not exist.
user: PropTypes.object,
// True when waiting for status change to complete.
waiting: false,
};
constructor(props, context) {
@ -45,7 +43,7 @@ export default class StatusMessageContextMenu extends React.Component {
user.on("User._unstable_statusMessage", this._onStatusMessageCommitted);
}
componentWillUmount() {
componentWillUnmount() {
const { user } = this.props;
if (!user) {
return;