Skip to content

Commit 2f0f2fc

Browse files
committed
--no-confirm was backwards in the Deactivate commands smh.
1 parent 70a00e8 commit 2f0f2fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/commands/server-admin/DeactivateCommand.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const SynapseAdminDeactivateCommand = describeCommand({
8989
if (synapseAdminClient === undefined) {
9090
throw new TypeError("Shouldn't be happening at this point");
9191
}
92-
const isNoConfirm = keywords.getKeywordValue<boolean>("no-confirm", false);
92+
const isConfirmed = keywords.getKeywordValue<boolean>("no-confirm", false);
9393
const isPurgingMessages = keywords.getKeywordValue<boolean>(
9494
"purge-messages",
9595
false
@@ -112,10 +112,10 @@ export const SynapseAdminDeactivateCommand = describeCommand({
112112
creation_timestamp: details.ok.creation_ts,
113113
displayname: details.ok.displayname ?? undefined,
114114
isPurgingMessages: Boolean(isPurgingMessages),
115-
isNoConfirm: Boolean(isNoConfirm),
115+
isNoConfirm: Boolean(isConfirmed),
116116
} satisfies DeactivateUserPreview);
117117
})();
118-
if (isNoConfirm) {
118+
if (!isConfirmed) {
119119
return previewResult;
120120
}
121121
const deactivateResult = await (() =>

0 commit comments

Comments
 (0)