Force message not rerendering on moderator privilages. Closes #1538

This commit is contained in:
Gabe Kangas 2021-12-18 23:32:33 -08:00
parent 34365e65bf
commit a964f02089
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -25,7 +25,10 @@ export default class ChatMessageView extends Component {
const { formattedMessage } = this.state;
const { formattedMessage: nextFormattedMessage } = nextState;
return formattedMessage !== nextFormattedMessage;
return (
formattedMessage !== nextFormattedMessage ||
(!this.props.isModerator && nextProps.isModerator)
);
}
async componentDidMount() {