Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 0e4ea97

Browse files
committed
Add defaultEncrypted prop
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 90ecdac commit 0e4ea97

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/dialogs/CreateRoomDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ interface IProps {
3737
defaultPublic?: boolean;
3838
defaultName?: string;
3939
parentSpace?: Room;
40+
defaultEncrypted?: boolean;
4041
onFinished(proceed: boolean, opts?: IOpts): void;
4142
}
4243

@@ -63,7 +64,7 @@ export default class CreateRoomDialog extends React.Component<IProps, IState> {
6364
const config = SdkConfig.get();
6465
this.state = {
6566
isPublic: this.props.defaultPublic || false,
66-
isEncrypted: privateShouldBeEncrypted(),
67+
isEncrypted: this.props.defaultEncrypted ?? privateShouldBeEncrypted(),
6768
name: this.props.defaultName || "",
6869
topic: "",
6970
alias: "",

0 commit comments

Comments
 (0)