diff --git a/web/modals/threads/settings/thread-settings-general-tab.react.js b/web/modals/threads/settings/thread-settings-general-tab.react.js --- a/web/modals/threads/settings/thread-settings-general-tab.react.js +++ b/web/modals/threads/settings/thread-settings-general-tab.react.js @@ -120,6 +120,13 @@ threadSettingsOperationInProgress, ]); + const canEditThreadDescription = useThreadHasPermission( + threadInfo, + threadPermissions.EDIT_THREAD_DESCRIPTION, + ); + + const threadDescriptionInputDisabled = !canEditThreadDescription; + const descriptionSection = React.useMemo(() => { if ( !threadSpecs[threadInfo.type].protocol().supportedThreadSettings @@ -135,13 +142,17 @@ value={queuedChanges.description ?? threadInfo.description ?? ''} placeholder="Chat description" onChange={onChangeDescription} - disabled={threadSettingsOperationInProgress} + disabled={ + threadSettingsOperationInProgress || + threadDescriptionInputDisabled + } rows={3} /> ); }, [ + threadDescriptionInputDisabled, onChangeDescription, queuedChanges.description, threadInfo.description,