mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 23:52:10 +03:00
Add defaultEncrypted prop
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
90ecdac47b
commit
0e4ea97050
1 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ interface IProps {
|
||||||
defaultPublic?: boolean;
|
defaultPublic?: boolean;
|
||||||
defaultName?: string;
|
defaultName?: string;
|
||||||
parentSpace?: Room;
|
parentSpace?: Room;
|
||||||
|
defaultEncrypted?: boolean;
|
||||||
onFinished(proceed: boolean, opts?: IOpts): void;
|
onFinished(proceed: boolean, opts?: IOpts): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
|
||||||
const config = SdkConfig.get();
|
const config = SdkConfig.get();
|
||||||
this.state = {
|
this.state = {
|
||||||
isPublic: this.props.defaultPublic || false,
|
isPublic: this.props.defaultPublic || false,
|
||||||
isEncrypted: privateShouldBeEncrypted(),
|
isEncrypted: this.props.defaultEncrypted ?? privateShouldBeEncrypted(),
|
||||||
name: this.props.defaultName || "",
|
name: this.props.defaultName || "",
|
||||||
topic: "",
|
topic: "",
|
||||||
alias: "",
|
alias: "",
|
||||||
|
|
Loading…
Reference in a new issue