mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +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;
|
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() {
|
||||||
if (modal) modal.close();
|
modal.close();
|
||||||
}).then(function(res) {
|
}).then(function(res) {
|
||||||
roomId = res.room_id;
|
roomId = res.room_id;
|
||||||
if (opts.dmUserId) {
|
if (opts.dmUserId) {
|
||||||
|
|
Loading…
Reference in a new issue