From e7d4ef74d0f46a765eb4a52c6e83740a29237f1d Mon Sep 17 00:00:00 2001 From: wmwragg Date: Thu, 1 Sep 2016 16:45:24 +0100 Subject: [PATCH] Placeholder for one to one chat dialog and functionality --- src/components/structures/MatrixChat.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 84575b9e4f..d4b3df93bd 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -357,6 +357,9 @@ module.exports = React.createClass({ this._setPage(this.PageTypes.RoomDirectory); this.notifyNewScreen('directory'); break; + case 'view_one_to_one_chat': + this._oneToOneChat(); + break; case 'notifier_enabled': this.forceUpdate(); break; @@ -493,6 +496,15 @@ module.exports = React.createClass({ } }, + _oneToOneChat: function() { + // TODO: Create a OneToOneChatChatDialog + var ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); + Modal.createDialog(ErrorDialog, { + title: "Unimplemented Feature", + description: "The OnToOneChatDialog is not yet implemented" + }); + }, + // update scrollStateMap according to the current scroll state of the // room view. _updateScrollMap: function() {