From 67c623d41062fd6ec1fe43a15163068f92cc3233 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Mon, 5 Sep 2016 10:29:03 +0100 Subject: [PATCH] Rename the action to make it clearer what it is doing --- src/components/structures/MatrixChat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index d4b3df93bd..c2cee983c3 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -357,8 +357,8 @@ module.exports = React.createClass({ this._setPage(this.PageTypes.RoomDirectory); this.notifyNewScreen('directory'); break; - case 'view_one_to_one_chat': - this._oneToOneChat(); + case 'view_create_chat': + this._createChat(); break; case 'notifier_enabled': this.forceUpdate(); @@ -496,7 +496,7 @@ module.exports = React.createClass({ } }, - _oneToOneChat: function() { + _createChat: function() { // TODO: Create a OneToOneChatChatDialog var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createDialog(ErrorDialog, {