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

This commit is contained in:
Gabe Kangas
2023-05-31 13:54:03 -07:00
parent 1ed51859b0
commit 71703f2245
5 changed files with 19 additions and 15 deletions
+1 -1
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;
}