Update status message in the member list and user info panel when it is changed (#7338)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a46de3b9b3
commit
43499b9244
3 changed files with 43 additions and 14 deletions
|
@ -66,7 +66,7 @@ export default class MemberTile extends React.Component<IProps, IState> {
|
|||
if (SettingsStore.getValue("feature_custom_status")) {
|
||||
const { user } = this.props.member;
|
||||
if (user) {
|
||||
user.on("User._unstable_statusMessage", this.onStatusMessageCommitted);
|
||||
user.on("User.unstable_statusMessage", this.onStatusMessageCommitted);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ export default class MemberTile extends React.Component<IProps, IState> {
|
|||
const { user } = this.props.member;
|
||||
if (user) {
|
||||
user.removeListener(
|
||||
"User._unstable_statusMessage",
|
||||
"User.unstable_statusMessage",
|
||||
this.onStatusMessageCommitted,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue