Add support for disabled chat state in the chat input field. Closes #2761
This commit is contained in:
@@ -293,6 +293,7 @@ export const Content: FC = () => {
|
||||
notifyItemSelected={() => setShowNotifyModal(true)}
|
||||
followItemSelected={() => setShowFollowModal(true)}
|
||||
externalActionSelected={externalActionSelected}
|
||||
chatEnabled={isChatAvailable}
|
||||
/>
|
||||
) : (
|
||||
<DesktopContent
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user