You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Placeholder for one to one chat dialog and functionality
This commit is contained in:
@ -357,6 +357,9 @@ module.exports = React.createClass({
|
|||||||
this._setPage(this.PageTypes.RoomDirectory);
|
this._setPage(this.PageTypes.RoomDirectory);
|
||||||
this.notifyNewScreen('directory');
|
this.notifyNewScreen('directory');
|
||||||
break;
|
break;
|
||||||
|
case 'view_one_to_one_chat':
|
||||||
|
this._oneToOneChat();
|
||||||
|
break;
|
||||||
case 'notifier_enabled':
|
case 'notifier_enabled':
|
||||||
this.forceUpdate();
|
this.forceUpdate();
|
||||||
break;
|
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
|
// update scrollStateMap according to the current scroll state of the
|
||||||
// room view.
|
// room view.
|
||||||
_updateScrollMap: function() {
|
_updateScrollMap: function() {
|
||||||
|
Reference in New Issue
Block a user