From a964f02089891ea0c0ac257d089e6724f5bbe5ac Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 18 Dec 2021 23:32:33 -0800 Subject: [PATCH] Force message not rerendering on moderator privilages. Closes #1538 --- webroot/js/components/chat/chat-message-view.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webroot/js/components/chat/chat-message-view.js b/webroot/js/components/chat/chat-message-view.js index 38585a5fb..0c0e76806 100644 --- a/webroot/js/components/chat/chat-message-view.js +++ b/webroot/js/components/chat/chat-message-view.js @@ -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() {