Implement leave room button and URL preview settings

This commit is contained in:
Travis Ralston 2019-01-28 13:52:59 -07:00
parent 87e6652b2a
commit db34666583
4 changed files with 53 additions and 27 deletions

View file

@ -44,6 +44,19 @@ export default class RoomSettingsDialog extends React.Component {
onFinished: PropTypes.func.isRequired,
};
componentWillMount(): void {
this.dispatcherRef = dis.register(this._onAction);
}
componentWillUnmount(): void {
dis.unregister(this.dispatcherRef);
}
_onAction = (payload) => {
if (payload.action !== 'close_room_settings') return;
this.props.onFinished();
};
_getTabs() {
const tabs = [];