Add support for disabled chat state in the chat input field. Closes #2761

This commit is contained in:
Gabe Kangas
2023-03-01 16:19:02 -08:00
parent de71984d46
commit 4a0476b237
9 changed files with 76 additions and 22 deletions

View File

@@ -25,6 +25,7 @@ export type MobileContentProps = {
messages: ChatMessage[];
currentUser: CurrentUser;
showChat: boolean;
chatEnabled: boolean;
actions: ExternalAction[];
externalActionSelected: (action: ExternalAction) => void;
supportsBrowserNotifications: boolean;
@@ -62,6 +63,7 @@ export const MobileContent: FC<MobileContentProps> = ({
messages,
currentUser,
showChat,
chatEnabled,
actions,
setExternalActionToDisplay,
setShowNotifyPopup,
@@ -80,6 +82,7 @@ export const MobileContent: FC<MobileContentProps> = ({
usernameToHighlight={displayName}
chatUserId={id}
isModerator={false}
chatAvailable={chatEnabled}
/>
);