From 2f0f2fc026383be1bd131e05ceb4188aba4d95f6 Mon Sep 17 00:00:00 2001 From: gnuxie Date: Mon, 14 Apr 2025 18:23:39 +0100 Subject: [PATCH] `--no-confirm` was backwards in the Deactivate commands smh. --- src/commands/server-admin/DeactivateCommand.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/server-admin/DeactivateCommand.tsx b/src/commands/server-admin/DeactivateCommand.tsx index 83f04ff8..1274af85 100644 --- a/src/commands/server-admin/DeactivateCommand.tsx +++ b/src/commands/server-admin/DeactivateCommand.tsx @@ -89,7 +89,7 @@ export const SynapseAdminDeactivateCommand = describeCommand({ if (synapseAdminClient === undefined) { throw new TypeError("Shouldn't be happening at this point"); } - const isNoConfirm = keywords.getKeywordValue("no-confirm", false); + const isConfirmed = keywords.getKeywordValue("no-confirm", false); const isPurgingMessages = keywords.getKeywordValue( "purge-messages", false @@ -112,10 +112,10 @@ export const SynapseAdminDeactivateCommand = describeCommand({ creation_timestamp: details.ok.creation_ts, displayname: details.ok.displayname ?? undefined, isPurgingMessages: Boolean(isPurgingMessages), - isNoConfirm: Boolean(isNoConfirm), + isNoConfirm: Boolean(isConfirmed), } satisfies DeactivateUserPreview); })(); - if (isNoConfirm) { + if (!isConfirmed) { return previewResult; } const deactivateResult = await (() =>