Placeholder for one to one chat dialog and functionality

pull/21833/head
wmwragg 2016-09-01 16:45:24 +01:00
parent a23d8e313d
commit e7d4ef74d0
1 changed files with 12 additions and 0 deletions
src/components/structures

View File

@ -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() {