mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
@@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user