From 90ecdac47b1810fc641fa89505b00791607920f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 12 Jul 2021 19:22:09 +0200 Subject: [PATCH] Types! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- .../views/settings/tabs/room/SecurityRoomSettingsTab.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } };