mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 19:41:52 +03:00
Types!
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
c478b4efb5
commit
90ecdac47b
1 changed files with 4 additions and 4 deletions
|
@ -208,7 +208,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
private _setRoomAccess = (roomAccess: string) => {
|
private setRoomAccess = (roomAccess: string) => {
|
||||||
// join_rule
|
// join_rule
|
||||||
// INVITE | PUBLIC
|
// INVITE | PUBLIC
|
||||||
// ----------------------+----------------
|
// ----------------------+----------------
|
||||||
|
@ -278,7 +278,7 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
|
||||||
return shouldCreate;
|
return shouldCreate;
|
||||||
};
|
};
|
||||||
|
|
||||||
private onRoomAccessRadioToggle = (roomAccess) => {
|
private onRoomAccessRadioToggle = (roomAccess: string) => {
|
||||||
if (
|
if (
|
||||||
this.state.encrypted &&
|
this.state.encrypted &&
|
||||||
this.state.joinRule != "public" &&
|
this.state.joinRule != "public" &&
|
||||||
|
@ -306,11 +306,11 @@ export default class SecurityRoomSettingsTab extends React.Component<IProps, ISt
|
||||||
)} </p>
|
)} </p>
|
||||||
</div>,
|
</div>,
|
||||||
onFinished: (confirm) => {
|
onFinished: (confirm) => {
|
||||||
if (confirm) this._setRoomAccess(roomAccess);
|
if (confirm) this.setRoomAccess(roomAccess);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this._setRoomAccess(roomAccess);
|
this.setRoomAccess(roomAccess);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue