From 08556c9d402bb6edc0aa6997c67f619fc04438d7 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 19 Oct 2025 15:09:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E5=AF=B9=E8=AF=9D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E4=B8=8D=E5=BE=97=E6=9B=B4=E6=94=B9=E8=AE=BE=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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} /> }