fix spinner when cancelling start chat from memberinfo
This commit is contained in:
parent
1a62369a01
commit
b81d901919
1 changed files with 3 additions and 1 deletions
|
@ -178,7 +178,7 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Modal.createDialog(ErrorDialog, {
|
Modal.createDialog(ErrorDialog, {
|
||||||
title: "Mod error",
|
title: "Moderator toggle error",
|
||||||
description: err.message
|
description: err.message
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -303,11 +303,13 @@ module.exports = React.createClass({
|
||||||
self.setState({ creatingRoom: true });
|
self.setState({ creatingRoom: true });
|
||||||
|
|
||||||
if (MatrixClientPeg.get().isGuest()) {
|
if (MatrixClientPeg.get().isGuest()) {
|
||||||
|
self.setState({ creatingRoom: false });
|
||||||
var NeedToRegisterDialog = sdk.getComponent("dialogs.NeedToRegisterDialog");
|
var NeedToRegisterDialog = sdk.getComponent("dialogs.NeedToRegisterDialog");
|
||||||
Modal.createDialog(NeedToRegisterDialog, {
|
Modal.createDialog(NeedToRegisterDialog, {
|
||||||
title: "Please Register",
|
title: "Please Register",
|
||||||
description: "Guest users can't create new rooms. Please register to create room and start a chat."
|
description: "Guest users can't create new rooms. Please register to create room and start a chat."
|
||||||
});
|
});
|
||||||
|
self.props.onFinished();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue