You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Misc fixes to StatusMessageContextMenu
"waiting" is not a property, and unmount had a typo
This commit is contained in:
@@ -25,8 +25,6 @@ export default class StatusMessageContextMenu extends React.Component {
|
|||||||
static propTypes = {
|
static propTypes = {
|
||||||
// js-sdk User object. Not required because it might not exist.
|
// js-sdk User object. Not required because it might not exist.
|
||||||
user: PropTypes.object,
|
user: PropTypes.object,
|
||||||
// True when waiting for status change to complete.
|
|
||||||
waiting: false,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(props, context) {
|
constructor(props, context) {
|
||||||
@@ -45,7 +43,7 @@ export default class StatusMessageContextMenu extends React.Component {
|
|||||||
user.on("User._unstable_statusMessage", this._onStatusMessageCommitted);
|
user.on("User._unstable_statusMessage", this._onStatusMessageCommitted);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUmount() {
|
componentWillUnmount() {
|
||||||
const { user } = this.props;
|
const { user } = this.props;
|
||||||
if (!user) {
|
if (!user) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user