diff --git a/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx b/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx index 063e29751e..1727e77557 100644 --- a/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx +++ b/src/components/views/settings/tabs/room/SecurityRoomSettingsTab.tsx @@ -208,7 +208,7 @@ export default class SecurityRoomSettingsTab extends React.Component { + private setRoomAccess = (roomAccess: string) => { // join_rule // INVITE | PUBLIC // ----------------------+---------------- @@ -278,7 +278,7 @@ export default class SecurityRoomSettingsTab extends React.Component { + private onRoomAccessRadioToggle = (roomAccess: string) => { if ( this.state.encrypted && this.state.joinRule != "public" && @@ -306,11 +306,11 @@ export default class SecurityRoomSettingsTab extends React.Component , onFinished: (confirm) => { - if (confirm) this._setRoomAccess(roomAccess); + if (confirm) this.setRoomAccess(roomAccess); }, }); } else { - this._setRoomAccess(roomAccess); + this.setRoomAccess(roomAccess); } };