From f8fe1166e22b2c8199057d06283f85e4cd92f132 Mon Sep 17 00:00:00 2001 From: Aine Date: Fri, 27 Sep 2024 19:25:15 +0300 Subject: [PATCH] Do not block deleted rooms from being rejoined by default (UI option), fixes #48 --- src/components/DeleteRoomButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/DeleteRoomButton.tsx b/src/components/DeleteRoomButton.tsx index 83a9a72..40fd9f5 100644 --- a/src/components/DeleteRoomButton.tsx +++ b/src/components/DeleteRoomButton.tsx @@ -16,7 +16,7 @@ const resourceName = "rooms"; const DeleteRoomButton: React.FC = (props) => { const translate = useTranslate(); const [open, setOpen] = useState(false); - const [block, setBlock] = useState(true); + const [block, setBlock] = useState(false); const notify = useNotify(); const redirect = useRedirect(); @@ -78,7 +78,7 @@ const DeleteRoomButton: React.FC = (props) => { value={block} onChange={(event: React.ChangeEvent) => setBlock(event.target.checked)} label="resources.rooms.action.erase.fields.block" - defaultValue={true} + defaultValue={false} />