fix(chat): fix bot status not showing. Closes #3046

This commit is contained in:
Gabe Kangas
2023-05-31 13:28:06 -07:00
parent 1ed51859b0
commit 71703f2245
5 changed files with 19 additions and 15 deletions

View File

@@ -304,7 +304,7 @@ export const ClientConfigStore: FC = () => {
);
if (message as ChatEvent) {
const m = new ChatEvent(message);
if (!hasBeenModeratorNotified && m.user?.isModerator()) {
if (!hasBeenModeratorNotified && m.user?.isModerator) {
setChatMessages(currentState => [...currentState, message as ChatEvent]);
hasBeenModeratorNotified = true;
}