File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/commands/server-admin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ( ( ) =>
You can’t perform that action at this time.
0 commit comments