pull/21833/head
Luke Barnard 2017-03-06 14:22:12 +00:00
parent ca5c2fb82e
commit a122b5d88e
1 changed files with 3 additions and 3 deletions

View File

@ -26,17 +26,17 @@ import createRoom from '../../../createRoom';
export default class CreateOrReuseChatDialog extends React.Component {
constructor (props) {
constructor(props) {
super(props);
this._onNewDMClick = this._onNewDMClick.bind(this);
}
_onNewDMClick () {
_onNewDMClick() {
createRoom({dmUserId: this.props.userId});
this.props.onFinished(true);
}
render () {
render() {
const client = MatrixClientPeg.get();
const dmRoomMap = new DMRoomMap(client);