mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-11 11:47:40 +03:00
Merge pull request #1120 from matrix-org/dbkr/infinite_spinner_email_reg
Fix infinite spinner on email registration
This commit is contained in:
commit
92cb394bac
1 changed files with 2 additions and 5 deletions
|
@ -76,14 +76,11 @@ 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() {
|
||||
if (modal) modal.close();
|
||||
modal.close();
|
||||
}).then(function(res) {
|
||||
roomId = res.room_id;
|
||||
if (opts.dmUserId) {
|
||||
|
|
Loading…
Reference in a new issue