Add support for disabled chat state in the chat input field. Closes #2761
This commit is contained in:
@@ -5,11 +5,13 @@ import {
|
||||
ClientConfigStore,
|
||||
currentUserAtom,
|
||||
visibleChatMessagesSelector,
|
||||
isChatAvailableSelector,
|
||||
} from '../../../../components/stores/ClientConfigStore';
|
||||
|
||||
export default function ReadOnlyChatEmbed() {
|
||||
const currentUser = useRecoilValue(currentUserAtom);
|
||||
const messages = useRecoilValue<ChatMessage[]>(visibleChatMessagesSelector);
|
||||
const isChatAvailable = useRecoilValue(isChatAvailableSelector);
|
||||
|
||||
return (
|
||||
<div>
|
||||
@@ -22,6 +24,7 @@ export default function ReadOnlyChatEmbed() {
|
||||
isModerator={false}
|
||||
showInput={false}
|
||||
height="100vh"
|
||||
chatAvailable={isChatAvailable}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user