change parameter to use preset enum

pull/21833/head
Germain Souquet 2021-06-15 00:01:05 +01:00
parent 07bdaeaf70
commit 2e6dab0bcd
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
canChangeEncryption: true, canChangeEncryption: true,
}; };
MatrixClientPeg.get().doesServerForceEncryptionForPreset("private") MatrixClientPeg.get().doesServerForceEncryptionForPreset(Preset.PrivateChat)
.then(isForced => this.setState({ canChangeEncryption: !isForced })); .then(isForced => this.setState({ canChangeEncryption: !isForced }));
} }