diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index 7230994..4d7ef70 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -472,7 +472,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC @@ -480,13 +480,14 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC title="允许入群" icon="person_add" id="allow_new_member_join" + disabled={!chatInfo.is_admin} state={groupPreferenceStore.state.allow_new_member_join || false} /> { groupPreferenceStore.state.new_member_join_method == 'answered_and_allowed_by_admin' @@ -507,7 +508,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC id="answered_and_allowed_by_admin_question" description="WIP" state={groupPreferenceStore.state.answered_and_allowed_by_admin_question || ''} - disabled={true} /> + disabled={true || !chatInfo.is_admin} /> }