Fix infinite spinner on email registration

Remove setTimeout on dialog display as it's no longer necessary
and causes races.
pull/21833/head
David Baker 2017-06-19 16:40:33 +01:00
parent 57f01b83be
commit 02da6fdbd5
1 changed files with 1 additions and 4 deletions

View File

@ -76,10 +76,7 @@ function createRoom(opts) {
} }
]; ];
let modal; const modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
setTimeout(()=>{
modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
}, 0);
let roomId; let roomId;
return client.createRoom(createOpts).finally(function() { return client.createRoom(createOpts).finally(function() {