mirror of https://github.com/vector-im/riot-web
Style
parent
ca5c2fb82e
commit
a122b5d88e
|
@ -26,17 +26,17 @@ import createRoom from '../../../createRoom';
|
||||||
|
|
||||||
export default class CreateOrReuseChatDialog extends React.Component {
|
export default class CreateOrReuseChatDialog extends React.Component {
|
||||||
|
|
||||||
constructor (props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this._onNewDMClick = this._onNewDMClick.bind(this);
|
this._onNewDMClick = this._onNewDMClick.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
_onNewDMClick () {
|
_onNewDMClick() {
|
||||||
createRoom({dmUserId: this.props.userId});
|
createRoom({dmUserId: this.props.userId});
|
||||||
this.props.onFinished(true);
|
this.props.onFinished(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render() {
|
||||||
const client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
|
|
||||||
const dmRoomMap = new DMRoomMap(client);
|
const dmRoomMap = new DMRoomMap(client);
|
||||||
|
|
Loading…
Reference in New Issue