Fix infinite spinner on email registration
Remove setTimeout on dialog display as it's no longer necessary and causes races.pull/21833/head
parent
66c3a6d9ca
commit
a8165d1707
|
@ -76,10 +76,7 @@ function createRoom(opts) {
|
|||
}
|
||||
];
|
||||
|
||||
let modal;
|
||||
setTimeout(()=>{
|
||||
modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
|
||||
}, 0);
|
||||
const modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
|
||||
|
||||
let roomId;
|
||||
return client.createRoom(createOpts).finally(function() {
|
||||
|
|
Loading…
Reference in New Issue