Show moderator message mid-chat session. Closes #2762

This commit is contained in:
Gabe Kangas 2023-03-03 19:49:58 -08:00
parent a714b8a881
commit 1536e4a04d
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

@ -292,7 +292,10 @@ export const ClientConfigStore: FC = () => {
setChatAuthenticated,
setCurrentUser,
);
if (!hasBeenModeratorNotified) {
if (
!hasBeenModeratorNotified &&
(message as ChatEvent).user?.scopes.includes('MODERATOR')
) {
setChatMessages(currentState => [...currentState, message as ChatEvent]);
hasBeenModeratorNotified = true;
}