mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 02:15:28 +03:00
Lint
This commit is contained in:
parent
925d5bd480
commit
29990296d2
1 changed files with 3 additions and 3 deletions
|
@ -801,8 +801,8 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_chatCreateOrReuse: function(userId, go_home_on_cancel) {
|
_chatCreateOrReuse: function(userId, goHomeOnCancel) {
|
||||||
if (go_home_on_cancel === undefined) go_home_on_cancel = true;
|
if (goHomeOnCancel === undefined) goHomeOnCancel = true;
|
||||||
|
|
||||||
const ChatCreateOrReuseDialog = sdk.getComponent(
|
const ChatCreateOrReuseDialog = sdk.getComponent(
|
||||||
'views.dialogs.ChatCreateOrReuseDialog',
|
'views.dialogs.ChatCreateOrReuseDialog',
|
||||||
|
@ -834,7 +834,7 @@ module.exports = React.createClass({
|
||||||
const close = Modal.createDialog(ChatCreateOrReuseDialog, {
|
const close = Modal.createDialog(ChatCreateOrReuseDialog, {
|
||||||
userId: userId,
|
userId: userId,
|
||||||
onFinished: (success) => {
|
onFinished: (success) => {
|
||||||
if (!success && go_home_on_cancel) {
|
if (!success && goHomeOnCancel) {
|
||||||
// Dialog cancelled, default to home
|
// Dialog cancelled, default to home
|
||||||
dis.dispatch({ action: 'view_home_page' });
|
dis.dispatch({ action: 'view_home_page' });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue