mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Show moderator message mid-chat session. Closes #2762
This commit is contained in:
parent
a714b8a881
commit
1536e4a04d
@ -292,7 +292,10 @@ export const ClientConfigStore: FC = () => {
|
|||||||
setChatAuthenticated,
|
setChatAuthenticated,
|
||||||
setCurrentUser,
|
setCurrentUser,
|
||||||
);
|
);
|
||||||
if (!hasBeenModeratorNotified) {
|
if (
|
||||||
|
!hasBeenModeratorNotified &&
|
||||||
|
(message as ChatEvent).user?.scopes.includes('MODERATOR')
|
||||||
|
) {
|
||||||
setChatMessages(currentState => [...currentState, message as ChatEvent]);
|
setChatMessages(currentState => [...currentState, message as ChatEvent]);
|
||||||
hasBeenModeratorNotified = true;
|
hasBeenModeratorNotified = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user