Merge pull request #3298 from matrix-org/t3chguy/Modal.createX_promise
change Modal async/await signature to use raw promises
This commit is contained in:
commit
75bcd61934
2 changed files with 3 additions and 3 deletions
|
@ -935,7 +935,7 @@ export default React.createClass({
|
|||
const CreateRoomDialog = sdk.getComponent('dialogs.CreateRoomDialog');
|
||||
const modal = Modal.createTrackedDialog('Create Room', '', CreateRoomDialog);
|
||||
|
||||
const [shouldCreate, name, noFederate] = await modal;
|
||||
const [shouldCreate, name, noFederate] = await modal.finished;
|
||||
if (shouldCreate) {
|
||||
const createOpts = {};
|
||||
if (name) createOpts.name = name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue